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