I had three error messages for different modules while running:
npm install --only=dev.
I installed them manually by running:
npm install mkdirp
npm install request
npm install npmlog
How can I avoid this on other (next) dev machines?
Can I just add these three to the beginning of the "devDependencies" list in package.json?
--only=dev
will only install devDependencies. If you need these dependencies, either run npm install
without the --only
flag or add them you your devDependencies
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.