npm start报错
PS C:\Users\Adminuser\Desktop\tts> npm start
> tts@1.0.0 start
> lite-server
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'moment'
Require stack:
- C:\Users\Adminuser\Desktop\tts\node_modules\connect-logger\lib\logger.js
- C:\Users\Adminuser\Desktop\tts\node_modules\lite-server\lib\config-defaults.js
- C:\Users\Adminuser\Desktop\tts\node_modules\lite-server\lib\lite-server.js
- C:\Users\Adminuser\Desktop\tts\node_modules\lite-server\bin\lite-server
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at module.exports (C:\Users\Adminuser\Desktop\tts\node_modules\connect-logger\lib\logge 'C:\\Users\\Adminuser\\Desktop\\tts\\node_modules\\connect-logger\\lib\\logger.js',
'C:\\Users\\Adminuser\\Desktop\\tts\\node_modules\\lite-server\\lib\\config-defaults.js',
'C:\\Users\\Adminuser\\Desktop\\tts\\node_modules\\lite-server\\lib\\lite-server.js',
'C:\\Users\\Adminuser\\Desktop\\tts\\node_modules\\lite-server\\bin\\lite-server'
]
}
正在回答 回答被采纳积分+1
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星