Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails #26

Open
bhtw opened this issue Sep 18, 2017 · 2 comments
Open

npm install fails #26

bhtw opened this issue Sep 18, 2017 · 2 comments

Comments

@bhtw
Copy link

bhtw commented Sep 18, 2017

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.

  1. vue init erguotou520/vue-fullstack myProject
  2. cd myProject
  3. 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
Copy link
Author

bhtw commented Sep 18, 2017

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
Copy link
Owner

Thanks for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants