初次npm install,有没有大神帮忙解答一下!!
node吧
全部回复
仅看楼主
level 1
二楼放图
以下是一次安装代码
F:\chatbot-ec\conversation-simple>npm install
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> [email protected] install F:\chatbot-ec\conversation-simple\node_modules\codecov\node_modules\execSync
> node install.js
[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
at _errnoException (util.js:1024:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:678:11)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn node-gyp',
path: 'node-gyp',
spawnargs: [ 'rebuild' ] }
[execSync v1.0.2]
Native code compile failed!!
Will try to use win32 extension.
> [email protected] install F:\chatbot-ec\conversation-simple\node_modules\websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)
F:\chatbot-ec\conversation-simple\node_modules\websocket>if not defined npm_config_node_gyp (node "C:\Users\Hv\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
> [email protected] install F:\chatbot-ec\conversation-simple\node_modules\phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Download already available at C:\Users\Hv\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
Verified checksum of previously downloaded file
Extracting zip contents
Removing F:\chatbot-ec\conversation-simple\node_modules\phantomjs-prebuilt\lib\phantom
Copying extracted folder C:\Users\Hv\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-
15121799784
61\phantomjs-2.1.1-windows -> F:\chatbot-ec\conversation-simple\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at F:\chatbot-ec\conversation-simple\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
added 526 packages in 78.208s
F:\chatbot-ec\conversation-simple>
2017年12月02日 02点12分 1
level 1
2017年12月02日 02点12分 2
level 1
初次使用node.js,不知道是不是只有高亮ERR才表示错误。但是感觉下面这几行也是错误的样子,有没有大佬帮我解答一下[委屈]
{ Error: spawn node-gyp ENOENT
at _errnoException (util.js:1024:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:678:11)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn node-gyp',
path: 'node-gyp',
spawnargs: [ 'rebuild' ] }
[execSync v1.0.2]
Native code compile failed!!
Will try to use win32 extension.
2017年12月02日 02点12分 3
1