0
Node version: v12.18.0
Npm version: 6.14.4

我删除了 node_modules 文件夹。运行命令npm cache clean --force,然后npm install. 我收到以下错误:

npm ERR! Exit status 9009
npm ERR!
npm ERR! Failed at the @ watch 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\Lenovo\AppData\Roaming\npm-cache\_logs\2020-06-05T14_49_19_539Z-debug.log

当我运行命令时npm run watch,我收到以下错误:

npm ERR! @ watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 9009
npm ERR!
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我还删除package.lock了文件并使用npm install命令重试,但没有运气。

这是我的package.json

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.18",
        "cross-env": "^5.2.0",
        "laravel-mix": "^2.0",
        "popper.js": "^1.12"
    },
    "dependencies": {
        "ajv": "^6.5.0",
        "algoliasearch": "^3.27.1",
        "jquery": "^3.3.1",
        "laravel-echo": "^1.3.5",
        "node-sass": "^4.13.1",
        "pusher-js": "^4.2.2",
        "vue": "^2.5.7",
        "vue-moment": "^3.2.0",
        "vue-select": "^2.4.0"
    }
}

我挠了几个小时,但找不到任何解决方案。任何帮助都将是非常可观的。

4

0 回答 0