简体   繁体   English

'lightercollective' 不是内部或外部命令,也不是可运行的程序或批处理文件

[英]'lightercollective' is not recognized as an internal or external command, operable program or batch file

I have installed webpack now I am trying to install webpack-cli but following errors occur:我已经安装了 webpack 现在我正在尝试安装 webpack-cli 但出现以下错误:

    $ npm i --save-dev webpack-cli

    > webpack-cli@3.2.1 postinstall D:\Development\Practices\sample\starter\node_modules\webpack-cli
    > lightercollective

    'lightercollective' is not recognized as an internal or external command, 
    operable program or batch file.
    npm WARN starter@1.0.0 No description
    npm WARN starter@1.0.0 No repository field.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! webpack-cli@3.2.1 postinstall: `lightercollective`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the webpack-cli@3.2.1 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\rajan\AppData\Roaming\npm-cache\_logs\2019-01-08T08_45_44_898Z-debug.log

Notes:笔记:

  • I have tried restarting my command line.我试过重新启动我的命令行。
  • I have also tried npm cache clean --force我也试过npm cache clean --force
  • And googling about an hour.并在谷歌上搜索了大约一个小时。
  • Finally, what does that lightercollective is not recognized as.. in the above message means?最后,上面消息中的那个打火机集体不被识别为..是什么意思? Confused???使困惑???

Install:安装:

npm i -g lightercollective npm i -g 打火机集体

They change stuff... you must specify version numbers when you get packages or it won't work in the future if there is some sort of a breaking change.他们改变了东西......你必须在获得软件包时指定版本号,否则如果有某种破坏性的变化,它将在未来无法工作。

You can add lightercollective to your dependencies to solve the issue.您可以将lightercollective添加到您的依赖项中以解决该问题。

Official package page官方包页面

"lightercollective": "^0.0.0"

Update webpack-cli: npm update webpack-cli --save-dev更新 webpack-cli: npm update webpack-cli --save-dev

In my situation, I went from 3.2.1 (which warned about "lightercollective") to 3.3.8.在我的情况下,我从 3.2.1(警告“lightercollective”)到 3.3.8。 Seemed like the issue was resolved.好像问题解决了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法将“ nodemon”识别为内部或外部命令,可操作程序或批处理文件 - 'nodemon' is not recognized as an internal or external command, operable program or batch file 无法将“节点”识别为内部或外部命令,可操作程序或批处理文件 - 'node' is not recognized as an internal or external command, operable program or batch file 'cocos'不被识别为内部或外部命令,可操作程序或批处理文件 - 'cocos' is not recognized as an internal or external command, operable program or batch file '。' 不被识别为内部或外部命令,可操作程序或批处理文件 - '.' is not recognized as an internal or external command, operable program or batch file '' 不被识别为内部或外部命令,可操作程序或批处理文件 - '.' is not recognized as an internal or external command, operable program or batch file 'express' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'express' is not recognized as an internal or external command, operable program or batch file 'GOOS' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'GOOS' is not recognized as an internal or external command, operable program or batch file 'CI' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'CI' is not recognized as an internal or external command, operable program or batch file 'firebase' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'firebase' is not recognized as an internal or external command, operable program or batch file 在 Windows 上运行forever.js 时出错-“'C:\\Program' 不是内部或外部命令、可运行的程序或批处理文件” - Error running forever.js on Windows - "'C:\Program' is not recognized as an internal or external command, operable program or batch file"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM