I get an issue when installing node-sass :
gyp verb download contents checksum {"node-v10.2.1-headers.tar.gz":"3700814861e61288d7dd1c4115f40acac0cbd0abbdd4bfd650d4ae85cc02ecce"}
gyp verb validating download checksum for node-v10.2.1-headers.tar.gz (3700814861e61288d7dd1c4115f40acac0cbd0abbdd4bfd650d4ae85cc02ecce == 3700814861e61288d7dd1c4115f40acac0cbd0abbdd4bfd650d4ae85cc02ecce)
gyp verb get node dir target node version installed: 10.2.1
gyp verb build dir attempting to create "build" dir: /var/www/****/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/****/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-116-generic
gyp ERR! command "/usr/local/bin/node" "/var/www/****/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/****/node_modules/node-sass
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN gestiaweb#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.9.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/****/.npm/_logs/2018-06-01T14_24_13_534Z-debug.log
Environment : Ubuntu (lastest)
NodeJS version : v10.2.1
Npm version : 5.6.0
gyp ERR! stack Error: EACCES: permission denied,
Its says permission denied. Try run with sudo
sudo npm i node-sass
It looks like there is a permissions issue. Can you install other packages?
If not make sure the user you are running the npm i node-gyp command has permissions to write to the appropriate directory.
chmod +w <path>/node_modules
In this case there seemed to be a permission issue with the user's node install
Solution:
sudo su && npm i node-sass
Related
I am using truffle unbox react, but it is failing to set up:
Preparing to download
√ Preparing to download
- Downloading
√ Downloading
- Cleaning up temporary files
√ Cleaning up temporary files
- Setting up box
× Setting up box
Error: Error: Error: Command failed: cd client && npm install
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Javaid\Desktop\myDapp\client\node_modules\scrypt
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Javaid\AppData\Roaming\npm-cache_logs\2019-05-04T19_24_38_096Z-debug.log
at Object.unbox (C:\Users\Javaid\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-box\box.js:69:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.0.15 (core: 5.0.15)
Node v10.15.3
Javaid#DESKTOP-6RRO05J MINGW64 ~/desktop/myDapp
Maybe try to replace the command with:
truffle unbox LibertyLocked/truffle-react-ts-template
Im having a bad day trying to create a new project in Ionic 3. I have this versions:
Ionic 3.9.2
npm 6.7.0
node v8.10.0
I'm using Ubuntu 18 and each time I do:
sudo ionic start test blank
I get this message:
https://nodejs.org/download/release/v8.10.0/node-v8.10.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp verb command remove [ '8.10.0' ]
gyp verb remove using node-gyp dir: /home/abraham/.node-gyp
gyp verb remove removing target version: 8.10.0
gyp verb remove removing development files for version: 8.10.0
gyp ERR! configure error
gyp ERR! stack Error: ENOENT: no such file or directory, open
'/home/abraham/='
gyp ERR! stack at Object.fs.openSync (fs.js:646:18)
gyp ERR! stack at Object.fs.readFileSync (fs.js:551:33)
gyp ERR! stack at readCAFile
(/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/node-gyp/lib/install.js:472:15)
gyp ERR! stack at download
(/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/node-gyp/lib/install.js:444:22)
gyp ERR! stack at
/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/node-gyp/lib/install.js:189:19
gyp ERR! stack at
/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/mkdirp/index.js:48:26
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:5)
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node"
"/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/node-gyp/bin/node-gyp.js"
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
"--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/home/abraham/Documentos/Ionic/IonicCurso/prueba/prueba/node_modules/node-sass
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7
(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current:
{"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.5.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.5.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/abraham/.npm/_logs/2019-01-26T16_26_10_675Z-debug.log
I dont know wheter if I will need to reinstal ionic since I've already tryied:
npm rebuild node-sass
Thanks for the help
There are times when you do not want to change ownership of the default directory that npm uses (i.e. /usr) as this could cause some problems, for example if you are sharing the system with other users.
Instead, you can configure npm to use a different directory altogether. In our case, this will be a hidden directory in our home folder.
Make a directory for global installations:
mkdir ~/.npm-global
Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'
Open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH
Back on the command line, update your system variables:
source ~/.profile
I'm trying to install npm lame on a raspberry pi 0. I've googled everything but keep getting this error:
Not really sure what else to do.
pi#raspberrypi:~/twotone $ sudo npm install lame
> lame#1.2.4 install /home/pi/twotone/node_modules/lame
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/twotone/node_modules/lame/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/twotone/node_modules/lame/.node-gyp'
gyp ERR! System Linux 4.14.79+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/twotone/node_modules/lame
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN twotone#1.0.0 No description
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lame#1.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lame#1.2.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-06T22_12_04_380Z-debug.log
You might have to add --unsafe-perm to the npm install command
Hi I am trying to install composer-cli using npm
but it is throwing error.
the log of the error is as below:
18988 error code ELIFECYCLE
18989 error errno 1
18990 error grpc#1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
18990 error Exit status 1
18991 error Failed at the grpc#1.10.1 install script.
18991 error This is probably not a problem with npm. There is likely additional logging output above.
18992 verbose exit [ 1, true ]
I tried every possible way to fix this issue. but couldn't find any solution.
Please let me know how to fix the issue.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.15.0-34-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/dspl_user/.npm-global/lib/node_modules/composer-cli/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/dspl_user/.npm-global/lib/node_modules/composer-cli/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc"
gyp ERR! cwd /home/dspl_user/.npm-global/lib/node_modules/composer-cli/node_modules/grpc
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/composer-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc#1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc#1.10.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/dspl_user/.npm/_logs/2018-09-27T13_11_13_477Z-debug.log
i resolved the same problem on my Ubuntu 18.04 machine by =>
Installing pre-requisites at https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html
which says->
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
then
chmod u+x prereqs-ubuntu.sh
and at last =>
./prereqs-ubuntu.sh
then restart your terminal and try the installation =>
npm install -g composer-cli#0.20
without su or sudo. I hope this helps :):)
I think I had the same error as you. It's working for me now after switching to Node 8.9.0. It looks like you're using Node v10, which is not supported for hyperledger fabric.
I'm new to meteor and both me and my mentor are stumped.
OS: Ubuntu 16.04
Meteor --version: 1.2.1
node -v: v7.5.0
meteor node -v: v0.10.40
npm -v: 4.1.2
meteor npm -v: 1.4.28
I tried following the advice on this and this stackoverflow links, but got the same error. No results with another github link either(sorry, need more reputation to post more links).
Please feel free to ask for any additional info for diagnosis.
=> Started proxy.
=> Meteor 1.4.3.2 is available. Update this project with 'meteor update'.
npm-container: updating npm dependencies -- fibers, path, soap, xml2json, fast-csv, unoconv, aws-sdk, > source-map-support, gm, request, mime,
analytics-node, oauth, number-to-words, omit-empty, superagent...
=> Errors prevented startup:
While building package npm-container:
error: couldn't install npm packages from npm-shrinkwrap: Command failed: npm WARN package.json > packages-for-meteor-npm-container#0.0.0 No
description
npm WARN package.json packages-for-meteor-npm-container#0.0.0 No repository field.
npm WARN package.json packages-for-meteor-npm-container#0.0.0 No README data
npm WARN engine analytics-node#2.0.1: wanted: {"node":">= 0.12.x"} (current: > {"node":"0.10.40","npm":"1.4.28"})
npm WARN deprecated node-uuid#1.4.7: Use uuid module instead
npm WARN deprecated tough-cookie#2.2.1: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/> advisories/130
npm WARN engine is-buffer#1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.40","npm":"1.4.28"})
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.6.0, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion
(/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14)
gyp ERR! stack at
/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:656:7)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:766:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
gyp ERR! System Linux 4.4.0-72-generic
gyp ERR! command "node"
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/shrey/projects/steplr-projects/employerapp/packages/npm-container/.npm/package-new-tca2qx/node_modules/> xml2json/node_modules/node-expat
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN deprecated minimatch#3.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! node-expat#2.3.13 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat#2.3.13 install script.
npm ERR! This is most likely a problem with the node-expat 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 their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.0-72-generic
npm ERR! command
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd /home/shrey/projects/steplr-projects/employerapp/packages/npm-container/.npm/package-new-tca2qx
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
npm WARN package.json packages-for-meteor-npm-container#0.0.0 No description
npm WARN package.json packages-for-meteor-npm-container#0.0.0 No repository field.
npm WARN package.json packages-for-meteor-npm-container#0.0.0 No README data
npm WARN engine analytics-node#2.0.1: wanted: {"node":">= 0.12.x"} (current: > {"node":"0.10.40","npm":"1.4.28"})
npm WARN deprecated node-uuid#1.4.7: Use uuid module instead
npm WARN deprecated tough-cookie#2.2.1: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/> advisories/130
npm WARN engine is-buffer#1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.40","npm":"1.4.28"})
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v3.6.0, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion
(/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:14)
gyp ERR! stack at
/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:97:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:656:7)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:766:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
gyp ERR! System Linux 4.4.0-72-generic
gyp ERR! command "node"
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/home/shrey/projects/steplr-projects/employerapp/packages/npm-container/.npm/package-new-tca2qx/node_modules/> xml2json/node_modules/node-expat
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN deprecated minimatch#3.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! node-expat#2.3.13 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat#2.3.13 install script.
npm ERR! This is most likely a problem with the node-expat 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 their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.0-72-generic
npm ERR! command
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/shrey/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/> mt-os.linux.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd /home/shrey/projects/steplr-projects/employerapp/packages/npm-container/.npm/package-new-tca2qx
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
=> Your application has errors. Waiting for file change.
Thank you.