https://registry.npm.alibaba-inc.com/
打不开
bjp0bcyl1#
Could you please provide the error message?
fivyi3re2#
➜ resources git:(master) npm run build > sentinel-dashboard@1.0.0 build > gulp build Error: Cannot find module './lib/runTask' Require stack: - /Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/node_modules/orchestrator/index.js - /Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/node_modules/gulp/index.js - /Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/gulpfile.js - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js - /usr/local/lib/node_modules/gulp/bin/gulp.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15) at Function.Module._load (node:internal/modules/cjs/loader:768:27) at Module.require (node:internal/modules/cjs/loader:995:19) at require (node:internal/modules/cjs/helpers:92:18) at Object.<anonymous> (/Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/node_modules/orchestrator/index.js:8:15) at Module._compile (node:internal/modules/cjs/loader:1091:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10) at Module.load (node:internal/modules/cjs/loader:971:32) at Function.Module._load (node:internal/modules/cjs/loader:812:14) at Module.require (node:internal/modules/cjs/loader:995:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/node_modules/orchestrator/index.js', '/Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/node_modules/gulp/index.js', '/Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources/gulpfile.js', '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js', '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js', '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js', '/usr/local/lib/node_modules/gulp/bin/gulp.js' ] } npm ERR! code 1 npm ERR! path /Users/chenshun/source/Sentinel/sentinel-dashboard/src/main/webapp/resources npm ERR! command failed npm ERR! command sh -c gulp build npm ERR! A complete log of this run can be found in: npm ERR! /Users/chenshun/.npm/_logs/2021-06-18T01_29_30_211Z-debug.log ➜ resources git:(master)
eoigrqb63#
➜ resources git:(master) node -v v15.10.0 ➜ resources git:(master) npm -v 7.5.3 ➜ resources git:(master) uname Darwin ➜ resources git:(master) gulp -v CLI version: 2.3.0 Local version: 3.9.1
sqyvllje4#
@chenshun00 可以尝试删除 package-lock.json 文件,然后 npm install 重新构建一下。
package-lock.json
npm install
4条答案
按热度按时间bjp0bcyl1#
Could you please provide the error message?
fivyi3re2#
eoigrqb63#
sqyvllje4#
@chenshun00 可以尝试删除
package-lock.json
文件,然后npm install
重新构建一下。