erguotou520 / vue-fullstack

vue fullstack template

Home Page:https://vf-backend.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install fails

bhtw opened this issue · comments

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 

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" } }

Thanks for your feedback.