以下是整個事務...至少可以看到的部分。我安裝了幾個npm軟件包,它們都工作,除了phantomjs(不是幻像)。這是整個交易......至少我能看到的部分。無法安裝PhantomJS以便在node.js中使用
> npm install phantomjs
\
> [email protected] install C:\server\nodejs\node_modules\phantomjs
> node install.js
'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\server\\nodejs\\\\node.exe" "C:\\server\\nodejs \\node_modules\\npm\\bin\\npm-cli.js" "install" "phantomjs"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
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.
npm ERR! Please include the following file with any support request:
npm ERR! C:\server\nodejs\npm-debug.log
nodemon(和節點)命令對文件夾C:\ server \ nodejs起作用。其他軟件包將安裝在此處並最終放在子文件夾中:C:\ server \ nodejs \ node_modules。看起來像包試圖運行「節點install.js」,但目錄是錯誤的。
好像我一直在看我能找到的所有東西,但幾天後我不得不問:任何人都知道什麼是去的上?
您是否已經在全局安裝了節點?你可以從任何目錄使用它嗎? – Harangue