node-lessons icon indicating copy to clipboard operation
node-lessons copied to clipboard

npm WARN enoent ENOENT

Open banditsmile opened this issue 8 years ago • 2 comments

[email protected] [email protected] 在执行npm install express的时候提示npm WARN enoent ENOENT... 命令执行完以后当前目录下面没有node_modules目录,express安装失败

在网上搜索之后发现需要执行npm init

banditsmile avatar Jul 24 '16 11:07 banditsmile

@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])

aimer1124 avatar Jul 25 '16 09:07 aimer1124

我也是同样问题,npm init后就好了。

billni avatar Aug 23 '16 12:08 billni