Answer the question
In order to leave comments, you need to log in
How to solve problem with npm node.js?
Friends, tell me, please, no matter what you try to install, an error occurs.
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-xmpp\node_
modules\node-xmpp-core\node_modules\node-stringprep
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/estraverse
npm http GET https://registry.npmjs.org/source-map
npm ERR! Error: ENOENT, lstat 'C:\Users\maysk_000\AppData\Roaming\npm\node_modul
es\node-xmpp\node_modules\node-xmpp-core\node_modules\ltx\test\parse-test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "node-xmpp"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-xmpp\node
_modules\node-xmpp-core\node_modules\ltx\test\parse-test.js
npm ERR! fstream_path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-x
mpp\node_modules\node-xmpp-core\node_modules\ltx\test\parse-test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fst
ream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/estraverse
npm WARN optional dep failed, continuing [email protected]0.12.1
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\maysk_000\AppData\Roa
ming\npm\node_modules\node-xmpp\node_modules\node-expat\test-mystic-library.xml'
npm ERR! error rolling back [email protected]0.15.0 { [Error: EPERM, unlink 'C:\Users\
maysk_000\AppData\Roaming\npm\node_modules\node-xmpp\node_modules\node-expat\tes
t-mystic-library.xml']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'C:\\Users\\maysk_000\\AppData\\Roaming\\npm
\\node_modules\\node-xmpp\\node_modules\\node-expat\\test-mystic-library.xml' }
npm ERR! [email protected]0.2.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected]0.2.3 install script.
npm ERR! This is most likely a problem with the node-stringprep 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-stringprep
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "node-xmpp"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'C:\Users\maysk_000\AppData\Roaming\npm\node_modul
es\node-xmpp\node_modules\brfs\node_modules\falafel\node_modules\esprima\bin\esp
arse.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "node-xmpp"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-xmpp\node
_modules\brfs\node_modules\falafel\node_modules\esprima\bin\esparse.js
npm ERR! fstream_path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-x
mpp\node_modules\brfs\node_modules\falafel\node_modules\esprima\bin\esparse.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fst
ream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\maysk_000\AppData\Roaming\npm\node_modul
es\node-xmpp\node_modules\request\node_modules\hawk\test\server.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "node-xmpp"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-xmpp\node
_modules\request\node_modules\hawk\test\server.js
npm ERR! fstream_path C:\Users\maysk_000\AppData\Roaming\npm\node_modules\node-x
mpp\node_modules\request\node_modules\hawk\test\server.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fst
ream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod 'C:\Users\maysk_000\AppData\Roaming\npm\node_modul
es\node-xmpp\node_modules\browserify\test\process\two.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
Answer the question
In order to leave comments, you need to log in
If npm cache clean does not help, and it most likely will, then you need to remove the gyp lib in python.
python -c 'import gyp; print gyp.__file__';
## Print out where gyp module located
mv /usr/lib/python2.7/site-packages/gyp /usr/lib/python2.7/site-packages/gyp_backup
## You must use your output and replace paths with your one
python -c 'import gyp; print gyp.__file__';
## Ensure that this module not used now
1) npm cache clean
if it doesn't help, check if you have permission to write to C:\\Users\\maysk_000\\AppData\\Roaming\\npm
and other paths found in the log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question