Wednesday, 26 April 2017

Visual Studio Code dev setup error - `scripts/npm.sh install` fail

trying to build the source code on my macbook.

tried npm cache clean

removed all global packages

npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm Command to remove all npm modules globally?

updated xcode and ran it once to install any updated components

installed Command Line Tools for Xcode 8.3.2

and didn't find a similar issue on google.

Any help is much appreciated. Thanks.

System info

VSCode Version: 1.12.0
OS Version: macOS 10.12.3 (16D32)
Kernel Version: Darwin 16.4.0

$ node -v
v6.9.4

$ npm -v
4.5.0

$ python --version
Python 2.7.12

$ make --version
GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

npm logs

> fsevents@0.3.8 install /Volumes/HAKO/devel/wk/project/vscode/node_modules/fsevents
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ '/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/node',
gyp verb cli   '/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.10.2 | darwin | 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/local/bin/python2
gyp verb check python version `/usr/local/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
gyp verb get node dir compiling against --target node version: "electronVersion": "1.6.6",
gyp ERR! configure error 
gyp ERR! stack Error: Invalid version number: "electronVersion": "1.6.6",
gyp ERR! stack     at getNodeDir (/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:70:25)
gyp ERR! stack     at /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:7
gyp ERR! stack     at /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:441:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:195:7)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:886:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:342:11)
gyp ERR! stack     at emitOne (events.js:96:13)
gyp ERR! stack     at Socket.emit (events.js:188:7)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/node" "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/HAKO/devel/wk/project/vscode/node_modules/fsevents
gyp ERR! node -v v6.10.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm verb lifecycle fsevents@0.3.8~install: unsafe-perm in lifecycle true
npm verb lifecycle fsevents@0.3.8~install: PATH: /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/HAKO/devel/wk/project/vscode/node_modules/fsevents/node_modules/.bin:/Volumes/HAKO/devel/wk/project/vscode/node_modules/.bin:/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin:/Volumes/HAKO/sdk/google-cloud-sdk/bin:/usr/texbin:/usr/local/mysql/bin:/usr/sbin:/usr/local/bin:/bin:/Volumes/HAKO/sdk/adt-bundle-mac-x86_64/sdk/platform-tools:/Volumes/HAKO/sdk/adt-bundle-mac-x86_64/sdk/tools:/Users/xxUSERxx/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin
npm verb lifecycle fsevents@0.3.8~install: CWD: /Volumes/HAKO/devel/wk/project/vscode/node_modules/fsevents
npm info lifecycle fsevents@0.3.8~install: Failed to exec install script
npm info lifecycle lazy-debug-legacy@0.0.1~install: lazy-debug-legacy@0.0.1
npm info lifecycle oniguruma@6.1.1~install: oniguruma@6.1.1

> oniguruma@6.1.1 install /Volumes/HAKO/devel/wk/project/vscode/node_modules/oniguruma
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ '/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/node',
gyp verb cli   '/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.10.2 | darwin | 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/local/bin/python2
gyp verb check python version `/usr/local/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
gyp verb get node dir compiling against --target node version: "electronVersion": "1.6.6",
gyp ERR! configure error 
gyp ERR! stack Error: Invalid version number: "electronVersion": "1.6.6",
gyp ERR! stack     at getNodeDir (/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:70:25)
gyp ERR! stack     at /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:7
gyp ERR! stack     at /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:441:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:195:7)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:886:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:342:11)
gyp ERR! stack     at emitOne (events.js:96:13)
gyp ERR! stack     at Socket.emit (events.js:188:7)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/node" "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/HAKO/devel/wk/project/vscode/node_modules/oniguruma
gyp ERR! node -v v6.10.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm verb lifecycle oniguruma@6.1.1~install: unsafe-perm in lifecycle true
npm verb lifecycle oniguruma@6.1.1~install: PATH: /Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/HAKO/devel/wk/project/vscode/node_modules/oniguruma/node_modules/.bin:/Volumes/HAKO/devel/wk/project/vscode/node_modules/.bin:/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin:/Volumes/HAKO/sdk/google-cloud-sdk/bin:/usr/texbin:/usr/local/mysql/bin:/usr/sbin:/usr/local/bin:/bin:/Volumes/HAKO/sdk/adt-bundle-mac-x86_64/sdk/platform-tools:/Volumes/HAKO/sdk/adt-bundle-mac-x86_64/sdk/tools:/Users/xxUSERxx/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin
npm verb lifecycle oniguruma@6.1.1~install: CWD: /Volumes/HAKO/devel/wk/project/vscode/node_modules/oniguruma
npm info lifecycle oniguruma@6.1.1~install: Failed to exec install script
npm verb unlock done using /Users/xxUSERxx/.electron-gyp/.npm/_locks/staging-a1aff879f0112c93.lock for /Volumes/HAKO/devel/wk/project/vscode/node_modules/.staging
code-oss-dev@1.12.0 /Volumes/HAKO/devel/wk/project/vscode
└─┬ gulp-sourcemaps@1.12.0
  └─┬ debug-fabulous@0.0.4
    └── lazy-debug-legacy@0.0.1 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: windows-foreground-love@0.1.0 (node_modules/windows-foreground-love):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for windows-foreground-love@0.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: windows-mutex@0.2.0 (node_modules/windows-mutex):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for windows-mutex@0.2.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@0.3.8 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@0.3.8 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm verb optional SKIPPING OPTIONAL DEPENDENCY: 
npm verb optional Failed at the fsevents@0.3.8 install script 'node-gyp rebuild'.
npm verb optional SKIPPING OPTIONAL DEPENDENCY: Make sure you have the latest version of node.js and npm installed.
npm verb optional SKIPPING OPTIONAL DEPENDENCY: If you do, this is most likely a problem with the fsevents package,
npm verb optional SKIPPING OPTIONAL DEPENDENCY: not with npm itself.
npm verb optional SKIPPING OPTIONAL DEPENDENCY: Tell the author that this fails on your system:
npm verb optional SKIPPING OPTIONAL DEPENDENCY:     node-gyp rebuild
npm verb optional SKIPPING OPTIONAL DEPENDENCY: You can get information on how to open an issue for this project with:
npm verb optional SKIPPING OPTIONAL DEPENDENCY:     npm bugs fsevents
npm verb optional SKIPPING OPTIONAL DEPENDENCY: Or if that isn't available, you can get their info via:
npm verb optional SKIPPING OPTIONAL DEPENDENCY:     npm owner ls fsevents
npm verb optional SKIPPING OPTIONAL DEPENDENCY: There is likely additional logging output above.
npm verb stack Error: oniguruma@6.1.1 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
npm verb stack     at emitTwo (events.js:106:13)
npm verb stack     at EventEmitter.emit (events.js:191:7)
npm verb stack     at ChildProcess.<anonymous> (/Users/xxUSERxx/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/spawn.js:40:14)
npm verb stack     at emitTwo (events.js:106:13)
npm verb stack     at ChildProcess.emit (events.js:191:7)
npm verb stack     at maybeClose (internal/child_process.js:886:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
npm verb pkgid oniguruma@6.1.1
npm verb cwd /Volumes/HAKO/devel/wk/project/vscode
npm ERR! Darwin 16.4.0
npm ERR! argv "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/node" "/Users/xxUSERxx/.nvm/versions/node/v6.10.2/bin/npm" "install" "--verbose"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! oniguruma@6.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the oniguruma@6.1.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs oniguruma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR!     /Volumes/HAKO/devel/wk/project/vscode/npm-debug.log



via rihdus

No comments:

Post a Comment