使用npm run start提示"can't find module ""E:\cache\node_modules\"

885419-20180715181959797-1194196590.png
出现这个错误的原因是因为我降级npm的时候,安装出现错误。
重新npm install npm -g之后,问题解决。

转载于:https://www.cnblogs.com/xiaodashu/p/9314415.html

> node-red@3.0.2 start D:\develop\pro\node-red > node packages/node_modules/node-red/red.js internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module 'express' Require stack: - D:\develop\pro\node-red\packages\node_modules\node-red\red.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (D:\develop\pro\node-red\packages\node_modules\node-red\red.js:32:15) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'D:\\develop\\pro\\node-red\\packages\\node_modules\\node-red\\red.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-red@3.0.2 start: `node packages/node_modules/node-red/red.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-red@3.0.2 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ld\AppData\Roaming\npm-cache\_logs\2023-06-13T08_53_13_791Z-debug.log
06-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值