繁体   English   中英

找不到模块 express

[英]cannot find a module express

waseem@waseem-HP-Laptop-14q-cs0xxx:~/nodedbtest$ npm install express npm ERR! 在 '...ugin-import":"2.18.2"' 附近解析时 JSON 输入意外结束

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/waseem/.npm/_logs/2020-01-28T07_47_56_274Z-debug.log
waseem@waseem-HP-Laptop-14q-cs0xxx:~/nodedbtest$ npm install express@4.17.1
npm ERR! Unexpected end of JSON input while parsing near '...ugin-import":"2.18.2"'

npm 错误! 可以在以下位置找到此运行的完整日志:npm ERR! /home/waseem/.npm/_logs/2020-01-28T07_48_26_728Z-debug.log

在这种情况下,请在安装模块之前尝试清理缓存。

npm cache clean --force

然后,

npm i express

这应该工作

这将帮助您:

npm cache clean --force
npm install express@latest

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM