node-lessons
node-lessons copied to clipboard
npm WARN enoent ENOENT
[email protected] [email protected] 在执行npm install express的时候提示npm WARN enoent ENOENT... 命令执行完以后当前目录下面没有node_modules目录,express安装失败
在网上搜索之后发现需要执行npm init
@banditsmile 应该是版本的问题,我自己电脑上面没有问题
➜ All node -v&&npm -v
v4.4.3
2.15.1
➜ All mkdir test&&cd test
➜ test npm install express
[email protected] ../../../node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
我也是同样问题,npm init后就好了。