全局安装npm软件包不起作用

时间:2017-03-25 03:39:21

标签: npm webpack

我正在尝试全局安装webpack,但我得到以下内容:

uint_least8_t

当我尝试运行webpack时,我什么都没得到:

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\Andrew> npm install webpack -g
C:\Users\Andrew\AppData\Roaming\npm\webpack -> C:\Users\Andrew\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
C:\Users\Andrew\AppData\Roaming\npm
`-- webpack@2.3.2

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\webpack\node_modules\chokidar\node_modules
\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})

当我试图查看我的全局包时,我什么都没得到:

PS C:\Users\Andrew> webpack
webpack : The term 'webpack' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ webpack
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (webpack:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

有什么问题?

0 个答案:

没有答案