Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Failed at the [email protected] install script 'node install.js'. #1427

Open
wangqianjun opened this issue Jan 28, 2016 · 4 comments
Open

Comments

@wangqianjun
Copy link

用npm安装spm出现如下错误:

系统环境:OS X Yosemite 10.10.5

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "spm" "-g"
npm ERR! node v4.2.6
npm ERR! npm v2.14.12
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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.

请问这是什么原因啊?

@jaredleechn
Copy link
Member

phantomjs 安装失败,尝试使用 cnpm 安装

http://npm.taobao.org/

@wangqianjun
Copy link
Author

用了cnpm安装还是报同样的错:

sh: node: command not found
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/Users/wangqianjun/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/Users/wangqianjun/.cnpm" "--registry=https://registry.npm.taobao.org" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/bin/node-gyp.js" "install" "spm" "-g"
npm ERR! node v4.2.6
npm ERR! npm v2.14.16
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: node install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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 information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
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:

说找不到node,但是我已经安装了node v4.2.6.

@afc163
Copy link
Member

afc163 commented Jan 28, 2016

建议自行搜索解决 node 环境问题。。。

@ythy
Copy link

ythy commented Feb 1, 2016

npm install spm -g --force

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants