node.js - Error installing sails in windows 7 -
i getting follwewing error while installing sails
> sails@0.11.0 preinstall e:\jb\npmtest\node_modules\sails > node ./lib/preinstall_npmcheck.js npm err! windows_nt 6.1.7601 npm err! argv "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sails" npm err! node v0.12.4 npm err! npm v2.10.1 npm err! file c:\windows\system32\cmd.exe; npm err! path c:\windows\system32\cmd.exe; npm err! code elifecycle npm err! errno enoent npm err! syscall spawn c:\windows\system32\cmd.exe; npm err! sails@0.11.0 preinstall: `node ./lib/preinstall_npmcheck.js` npm err! spawn c:\windows\system32\cmd.exe; enoent npm err! npm err! failed @ sails@0.11.0 preinstall script 'node ./lib/preinstall_npmcheck.js'. npm err! problem sails package, npm err! not npm itself. npm err! tell author fails on system: npm err! node ./lib/preinstall_npmcheck.js npm err! can info via: npm err! npm owner ls sails npm err! there additional logging output above. npm err! please include following file support request: npm err! e:\jb\npmtest\npm-debug.log
i tried insatll sails 0.10 getting error
npm warn deprecated grunt-lib-contrib@0.7.1: deprecated. see readme: https://github.com/gruntjs/grunt-lib-contrib \ > ws@0.4.32 install e:\jb\npmtest\node_modules\sails\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) npm err! windows_nt 6.1.7601 npm err! argv "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sails@0.10" npm err! node v0.12.4 npm err! npm v2.10.1 npm err! file c:\windows\system32\cmd.exe; npm err! path c:\windows\system32\cmd.exe; npm err! code elifecycle npm err! errno enoent npm err! syscall spawn c:\windows\system32\cmd.exe; npm err! ws@0.4.32 install: `(node-gyp rebuild 2> builderror.log) || (exit 0)` npm err! spawn c:\windows\system32\cmd.exe; enoent npm err! npm err! failed @ ws@0.4.32 install script '(node-gyp rebuild 2> builderror.log) || (exit 0)'. npm err! problem ws package, npm err! not npm itself. npm err! tell author fails on system: npm err! (node-gyp rebuild 2> builderror.log) || (exit 0) npm err! can info via: npm err! npm owner ls ws npm err! there additional logging output above.
i have tried fix error trying npm cache clear
suggested link https://github.com/balderdashy/sails/issues/2751. still getting error.
i have solved issue running command npm install -g sails --ignore-scripts
Comments
Post a Comment