Reputation: 21
I tried to create new project and did like this.
> express newproject > cd newproject > ls app.js package.json public/ routes/ views/ > npm install // ... > ls app.js commander/ cookie-signature/ formidable/ methods/ node_modules/ public/ routes/ buffer-crc32/ connect/ debug/ fresh/ mime/ package.json qs/ send/ bytes/ cookie/ express/ jade/ mkdirp/ pause/ range-parser/ views/
Why the files are downloaded into current directory? Is this a bug?
I resolved this issue by fixing ~/.npmrc.
- cache = .
+ cache = ~/.npm
It works!
Upvotes: 1
Views: 241
Reputation: 21
I resolved this issue by fixing ~/.npmrc.
- cache = .
+ cache = ~/.npm
It works!
Upvotes: 1