> phantomjs@1.9.18 install /root/.nvm/versions/node/v4.2.1/lib/node_modules/spm/node_modules/phantomjs
> node install.js
sh: 1: node: Permission denied
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/root/.nvm/versions/node/v4.2.1/bin/node" "/root/.nvm/versions/node/v4.2.1/bin/npm" "i" "spm" "-g"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs@1.9.18 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs@1.9.18 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
报错信息:
是由于phantomjs的问题,目前解决方法:http://sourcode.net/sh-1-node-permission-denied/