无法安装React js Webpack

时间:2018-06-28 07:29:24

标签: reactjs webpack

您好,我的网络服务有问题。更新后,来自master fornt的所有文件不起作用(我使用react js,webpack,node js)。当我尝试启动项目时 我有这样的东西:

 Error: Cannot find module 'webpack'
        at Function.Module._resolveFilename (module.js:547:15)
        at Function.Module._load (module.js:474:25)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (C:\Projekt\crew\crew-ui\webpack.config.js:1:77)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)

所以我尝试从控制台安装webpack,但出现下一个错误:

"C:\Program Files\JetBrains\IntelliJ IDEA 2018.1\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" install --scripts-prepend-node-path=auto
    npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
    npm ERR! code E404
    npm ERR! 404 Not Found: React@latest

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\mtmi\AppData\Roaming\npm-cache\_logs\2018-06-28T07_27_01_002Z-debug.log

0 个答案:

没有答案