Development Environment - npm install issues

348 views
Skip to first unread message

ste.a...@gmail.com

unread,
Jan 4, 2019, 11:16:53 AM1/4/19
to taigaio
Hello,

not sure if this is the right place to write, so apologies if I got it wrong. I am trying to setup a development environment for Taiga; I manage to setup taiga-back without any issues but I am having issues with taiga-front. I followed the guide here http://taigaio.github.io/taiga-doc/dist/setup-development.html and arrived to the step "npm install", which is giving me many issues.

I am working on a VM running Ubuntu 18.04.1 LTS. After following all the steps and running "npm install" I get issues below. Can anyone put me in the right direction? Is it something due to wrong versions of npm or node?

Thanks,

Stefano

npm WARN deprecated babel-pre...@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated coffee...@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated gulp-mi...@1.2.4: Please use gulp-clean-css
npm WARN deprecated gulp...@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated ja...@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated node...@1.4.8: Use uuid module instead
npm WARN deprecated to-ma...@3.1.1: to-markdown has been renamed to Turndown, with a new API. Please update to turndown v4.0.0 or above and see the migration guide for details: https://github.com/domchristie/turndown/wiki/Migrating-from-to-markdown-to-Turndown
npm WARN deprecated gulp...@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-...@1.8.2: Removed event-stream from gulp-header
npm WARN deprecated gulp-...@1.0.5: Security vulnerability surrounding event-stream, do *NOT* use.
npm WARN deprecated constan...@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated transf...@2.1.0: Deprecated, use jstransformer
npm WARN deprecated ja...@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso...@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated cross-sp...@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated form...@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated sam...@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated grace...@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated browse...@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated coffee...@1.11.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated mini...@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated ja...@1.9.2: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated sam...@1.1.3: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated coffee...@1.7.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated mini...@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated mini...@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated grace...@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated grace...@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

> typec...@2.0.8 preinstall /home/stefano/Development/taiga-front/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js


> typec...@2.0.8 preinstall /home/stefano/Development/taiga-front/node_modules/extendr/node_modules/typechecker
> node ./cyclic.js


> node...@3.7.0 install /home/stefano/Development/taiga-front/node_modules/node-sass
> node scripts/install.js


HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g. 

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> pre-c...@1.2.2 install /home/stefano/Development/taiga-front/node_modules/pre-commit
> node install.js


> spawn...@1.0.15 postinstall /home/stefano/Development/taiga-front/node_modules/spawn-sync
> node postinstall


> node...@3.7.0 postinstall /home/stefano/Development/taiga-front/node_modules/node-sass
> node scripts/build.js

Building: /usr/bin/node /home/stefano/Development/taiga-front/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli   '/home/stefano/Development/taiga-front/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node...@3.8.0
gyp info using no...@8.15.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.15
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 8.15.0
gyp verb command install [ '8.15.0' ]
gyp verb install input version string "8.15.0"
gyp verb install installing version: 8.15.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.15.0
gyp verb build dir attempting to create "build" dir: /home/stefano/Development/taiga-front/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /home/stefano/Development/taiga-front/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/stefano/Development/taiga-front/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/stefano/Development/taiga-front/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /home/stefano/Development/taiga-front/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/stefano/Development/taiga-front/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/stefano/Development/taiga-front/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/stefano/Development/taiga-front/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/stefano/.node-gyp/8.15.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/stefano/.node-gyp/8.15.0',
gyp info spawn args   '-Dnode_gyp_dir=/home/stefano/Development/taiga-front/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/stefano/.node-gyp/8.15.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/stefano/Development/taiga-front/node_modules/node-sass',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/stefano/.node-gyp/8.15.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/stefano/Development/taiga-front/node_modules/node-sass/build'
  g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/stefano/.node-gyp/8.15.0/include/node -I/home/stefano/.node-gyp/8.15.0/src -I/home/stefano/.node-gyp/8.15.0/deps/openssl/config -I/home/stefano/.node-gyp/8.15.0/deps/openssl/openssl/include -I/home/stefano/.node-gyp/8.15.0/deps/uv/include -I/home/stefano/.node-gyp/8.15.0/deps/zlib -I/home/stefano/.node-gyp/8.15.0/deps/v8/include -I../../nan  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../src/binding.cpp:3:0:
../src/sass_context_wrapper.h:8:10: fatal error: sass/context.h: No such file or directory
 #include <sass/context.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
binding.target.mk:116: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/stefano/Development/taiga-front/node_modules/node-sass/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/stefano/Development/taiga-front/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node" "/home/stefano/Development/taiga-front/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/stefano/Development/taiga-front/node_modules/node-sass
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed
npm WARN The package bluebird is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node...@3.7.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node...@3.7.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Reply all
Reply to author
Forward
0 new messages