Home > front end >  VUE novice for help, the new version scaffolding don't know how can you run
VUE novice for help, the new version scaffolding don't know how can you run

Time:12-09

I vue is a novice, always watching the tutorial, now looking at the vue scaffolding, 6.12.1 NPM current version, vue - 4.4.6 cli version, in accordance with the said in the tutorial, open a command line,
1 input vue create huiben3
2 set up complete, CD huiben3, CNPM install, all ok
3 CNPM run serve, next is as follows:


[email protected] serve D: \ fireknight \ myFiles \ work \ my H5 \ svnfolder \ eduonline \ \ English huiben3
Vue cli - service serve

The INFO Starting development server...
ERROR ERROR: Package exports for 'D: \ fireknight \ myFiles H5 \ \ work \ my \ English svnfolder \ eduonline \ huiben3 \ node_modules \ colorette' do not define a valid '. 'target
Error: Package exports for 'D: \ fireknight \ myFiles H5 \ \ work \ my \ English svnfolder \ eduonline \ huiben3 \ node_modules \ colorette' do not define a valid '. 'target
The at resolveExportsTarget (internal/modules/CJS/loader. Js: 545:13)
The at applyExports (internal/modules/CJS/loader. Js: 459:14)
The at resolveExports (internal/modules/CJS/loader. Js: 508:12)
Ats Function. The Module. _findPath (internal/modules/CJS/loader. Js: 577:20)
Ats Function. The Module. _resolveFilename (internal/modules/CJS/loader. Js: 879:27)
Ats Function. The Module. _load (internal/modules/CJS/loader. Js: 785:27)
At the Module. The require (internal/modules/CJS/loader. Js: 956:19)
At the require (internal/modules/CJS/helpers. Js: 74:18)
At the Object. & lt; Anonymous> (D: \ fireknight \ myFiles \ work \ my H5 \ svnfolder \ \ English eduonline \ huiben3 \ node_modules \ autoprefixer \ lib \ autoprefixer js: 5:17)
At the Module. _compile (internal/modules/CJS/loader. Js: 1063:30)
npm ERR! Code ELIFECYCLE
npm ERR! Errno 1
npm ERR! [email protected] serve: ` vue cli - service serve `
npm ERR! The Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with NPM. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C: \ Users \ fireknight \ AppData \ Roaming \ NPM - cache \ _logs \ 2020-07-14 T10_15_24_817Z - the debug log


Don't know what is version of the problem or question, NPM cache clean -- force also tried, could you tell me what's the solution?

CodePudding user response:

Don't try Chinese directory

CodePudding user response:

reference 1st floor jio can reply:
don't have to try Chinese directory


Not tried,

D: \ fireknight \ myFiles \ work \ vue \ study> CD webtest

D: \ fireknight \ myFiles \ work \ vue \ study \ webtest> CNPM install
16) Installed packages
Square root Linked 0 latest versions
Square root scripts Run 0
Tick All packages installed (informs the 17 ms (11 ms) network, speed 0 b/s, json 0 (0 b), the tarball 0 b)

D: \ fireknight \ myFiles \ work \ vue \ study \ webtest> NPM run serve

[email protected] serve D: \ fireknight \ myFiles \ work \ vue \ study \ webtest
Vue cli - service serve

The INFO Starting development server...
ERROR ERROR: Package exports for 'D: \ fireknight \ myFiles \ work \ vue/study/webtest/node_modules \ colorette' do not define a valid '. 'target
Error: Package exports for 'D: \ fireknight \ myFiles \ work \ vue/study/webtest/node_modules \ colorette' do not define a valid '. 'target
The at resolveExportsTarget (internal/modules/CJS/loader. Js: 545:13)
The at applyExports (internal/modules/CJS/loader. Js: 459:14)
The at resolveExports (internal/modules/CJS/loader. Js: 508:12)
Ats Function. The Module. _findPath (internal/modules/CJS/loader. Js: 577:20)
Ats Function. The Module. _resolveFilename (internal/modules/CJS/loader. Js: 879:27)
Ats Function. The Module. _load (internal/modules/CJS/loader. Js: 785:27)
At the Module. The require (internal/modules/CJS/loader. Js: 956:19)
At the require (internal/modules/CJS/helpers. Js: 74:18)
At the Object. & lt; Anonymous> (D: \ fireknight \ myFiles \ work \ vue \ study \ webtest/node_modules/autoprefixer \ lib \ autoprefixer js: 5:17)
At the Module. _compile (internal/modules/CJS/loader. Js: 1063:30)

CodePudding user response:

Scaffolding to create the web can be run directly, not need to install, use NPM try

CodePudding user response:

Colorette this package should be shipped without success

CodePudding user response:

Try reloading the

CodePudding user response:

Use the NPM run dev give it a try

CodePudding user response:

To look at the script configuration, general is in the package. The json

CodePudding user response:

Check the local node package version, my local 13.1.0 node version and the original poster described the same mistakes, change the node version to the latest version of the live stable version can run normally,

CodePudding user response:

CNPM perfectly on some packaging don't, you had deleted node_modules directly with NPM I try
  • Related