After node.js is installed, use NPM to install Vue. The error is as follows:
C:\Users\lxz> npm uninstall vueWcsp
npm WARN saveError ENOENT: no such file or directory, open ‘C:\Users\lxz\package.json’
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\lxz\package.json’
npm WARN lxz No description
npm WARN lxz No repository field.
npm WARN lxz No README data
npm WARN lxz No license field.
Up to date in 0.765s
according to the error prompt, the system does not have the file package. JSON. This file is used to manage NPM packages installed locally. A package.json file can do the following:
The NPM package that the display project depends on
allows you to specify the version [scope] of a package
so that you can establish stability, which means that you can better share with other developers
Now we need to execute the order:
npm init
And then all the way back to OK, this file can be changed later
Create the package.json file, and the system will prompt for relevant configuration. You can also use the following command:
npm init -y
Create the package.json file directly. The advantage of creating this file is that the required items have been filled in for you. After executing the command, you can see that there is an additional package.json file in the user path
Similar Posts:
- NPM install socket.io[UNK][UNK] error: [UNK](npm WARN enoent ENOENT: no such file or directory, open ‘/usr/local/no…
- npm WARN saveError ENOENT: no such file or directory, open ‘C:\Users\James\package.json’
- [Solved] NPM installation Vue scaffold error: npm ERR! Unexpected end of JSON input while parsing near…
- Solution to error reporting in starting MySQL
- npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: want
- This application requires Java Runtime Environment
- FreeMind Open Warning: the registry refers to a nonexiste
- [Solved] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
- fatal: Not a git repository (or any of the parent directories): .git
- How to Solve Electronic forge packer Error