Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

takecloud-shop-admin@0.1.0 dev: cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js npm ERR! Exit status 1 #4253

Open
xinluang9 opened this issue Sep 11, 2024 · 0 comments

Comments

@xinluang9
Copy link

npm run dev 报该错误, 依赖可以下载成功

takecloud-shop-admin@0.1.0 dev /Users/huoma003/Desktop/Project/newRetail-cashier
cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

internal/modules/cjs/loader.js:1068
throw err;
^

Error: Cannot find module 'node:path'
Require stack:

  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/path-scurry/dist/commonjs/index.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/glob.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/index.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/index-cjs.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/@sentry/bundler-plugin-core/dist/cjs/index.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/@sentry/webpack-plugin/dist/cjs/index.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/build/webpack.base.conf.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/build/webpack.dev.conf.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/webpack-cli/bin/convert-argv.js
  • /Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/webpack-dev-server/bin/webpack-dev-server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)
    at Function.Module._load (internal/modules/cjs/loader.js:911:27)
    at Module.require (internal/modules/cjs/loader.js:1125:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object. (/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/path-scurry/dist/commonjs/index.js:28:21)
    at Module._compile (internal/modules/cjs/loader.js:1236:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
    at Module.load (internal/modules/cjs/loader.js:1085:32)
    at Function.Module._load (internal/modules/cjs/loader.js:950:14)
    at Module.require (internal/modules/cjs/loader.js:1125:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object. (/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/glob.js:5:23)
    at Module._compile (internal/modules/cjs/loader.js:1236:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
    at Module.load (internal/modules/cjs/loader.js:1085:32)
    at Function.Module._load (internal/modules/cjs/loader.js:950:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/path-scurry/dist/commonjs/index.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/glob.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/index.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/glob/dist/cjs/index-cjs.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/@sentry/bundler-plugin-core/dist/cjs/index.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/@sentry/webpack-plugin/dist/cjs/index.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/build/webpack.base.conf.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/build/webpack.dev.conf.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/webpack-cli/bin/convert-argv.js',
    '/Users/huoma003/Desktop/Project/newRetail-cashier/node_modules/webpack-dev-server/bin/webpack-dev-server.js'
    ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! takecloud-shop-admin@0.1.0 dev: cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the takecloud-shop-admin@0.1.0 dev 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! /Users/huoma003/.npm/_logs/2024-09-11T05_26_52_474Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant