npm install fails
bhtw opened this issue · 2 comments
bhtw commented
Hi
Following instructions from README, but npm install
fails.
I have tried both choosing 'yes' and 'no' regarding the 'Need i18n' question. Both time it fails.
vue init erguotou520/vue-fullstack myProject
cd myProject
npm install
It also complains about the crypto version selected is no longer supported.
For security, I have replaced my user as 'Me' and my project to myProject..
..Me$ npm install
npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN myProject@0.0.1 No repository field.
npm WARN myProject@0.0.1 scripts['server'] should probably be scripts['start'].
npm WARN myProject@0.0.1 No license field.
npm WARN The package express is included as both a dev and production dependency.
npm ERR! path /Users/Me/dev/myProject/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/Me/dev/myProject/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
bhtw commented
Sorry. This is not an issue with this repo, but latest release of js-beautify.
ref: (https://github.com/beautify-web/js-beautify/issues/1247).
But deprecate notice still applies.
Solution:
Add the following in packages.json file:
{ "dependencies": { .., .., "js-beautify": "1.6.14" } }
..
{ "devDependencies": { .., .., "js-beautify": "1.6.14" } }
erguotou520 commented
Thanks for your feedback.