我得到这个错误
错误:找不到模块“node:path”
Apr 6 01:30:19 PM Require stack:
Apr 6 01:30:19 PM -/opt/render/project/src/node_modules/express-handlebars/dist/express-handlebars.js
Apr 6 01:30:19 PM -/opt/render/project/src/node_modules/express-handlebars/dist/index.js
Apr 6 01:30:19 PM -/opt/render/project/src/index.js
Function.Module._resolveFilename(internal/modules/cjs/loader.js:885:15)
Function.Module._load(internal/modules/cjs/loader.js:730:27)
4月6日下午01:30:19在Module.require(internal/modules/cjs/loader.js:957:19)
4月6日下午01:30:19 at require(internal/modules/cjs/helpers.js:88:18)
Apr 6 01:30:19 PM at Object.(/opt/render/project/src/node_modules/express-handlebars/dist/express-handlebars.js:19:14)
4月6日下午01:30:19 at Module._compile(internal/modules/cjs/loader.js:1068:30)
Apr 6 01:30:19 PM at Object.Module._extensions..js(internal/modules/cjs/loader.js:1097:10)
April 6 01:30:19 PM at Module.load(internal/modules/cjs/loader.js:933:32)
Function.Module._load(internal/modules/cjs/loader.js:774:14)
Apr 6 01:30:19 PM at Module.require(internal/modules/cjs/loader.js:957:19){
Apr 6 01:30:19 PM代码:'MODULE_NOT_FOUND',
Apr 6 01:30:19 PM requireStack:[
4月6日01:30:19 PM '/opt/render/project/src/node_modules/express-handlebars/dist/express-handlebars.js',
4月6日01:30:19 PM '/opt/render/project/src/node_modules/express-handlebars/dist/index.js',
4月6日01:30:19 PM '/opt/render/project/src/index.js'
[2019年4月6日01:30:19 PM ]
2019 - 01 - 19 01:30:19 PM
2019年04月06日01:30:19 PM npm错误!代码ELIFECYCLE
2019年04月06日01:30:19 PM npm错误!错误1
2019年04月06日01:30:19 PM npm错误!testproject@1.0.0 dev:node index.js
2019年04月06日01:30:19 PM npm错误!退出状态1
2019年04月06日01:30:19 PM npm错误!
2019年04月06日01:30:19 PM npm错误!testproject@1.0.0 dev脚本失败。
2019年04月06日01:30:19 PM npm错误!这可能不是npm的问题。上面可能有其他日志记录输出。
2019年4月6日01:30:19 PM
2019年04月06日01:30:19 PM npm错误!该运行的完整日志可参见:
2019年04月06日01:30:19 PM npm错误!/opt/render/.cache/_logs/2023-04-06T08_00_19_233Z-debug.log
如果我在呈现器上部署我节点js、hbs应用程序
1条答案
按热度按时间aiazj4mn1#