Vue.js Miscellany

 

If that, miscellany.

 

1. Create a new project in WebStorm, run the following command cnpm install error.

20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
22 error Exit status 1
23 error Failed at the [email protected] dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Method One: According to the results of online search, delete the directory node_modules, re-execute cnpm install.

This method is sometimes possible.

Method Two: Open the Windows built-in command prompt, enter the directory where the project is executed cnpm install, the following text is displayed, setup is complete.

D:\workspace-webstorm\fcp_demo_v1>cnpm install
√ Installed 58 packages
√ Linked 0 latest versions
√ Run 0 scripts
√ All packages installed (used 63ms(network 57ms), speed 0B/s, json 0(0B), tarball 0B)

Guess you like

Origin www.cnblogs.com/Currention/p/11021683.html