Use weex to create a new app and find NPM error:
npm : The file D:\Program Files\nodejs\node_global\weex.ps1 could not be loaded because running scripts is disabled on this system. For more information, see https:
/go.microsoft.com/fwlink/?LinkID=135170 in about_Execution_Policies.
Location Line:1 Character: 1
+ npm run dev
+ ~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Because it is forbidden to run scripts on this system, that is to say, you do not have permission
get-ExecutionPolicy
// Output: Restricted
// Restricted
Restricted means that the state is prohibited. Give permission:
Set-ExecutionPolicy -Scope CurrentUser
// At the prompt, enter.
RemoteSigned
Verify:
get-ExecutionPolicy
// Output: RemoteSigned
Then recreate the project.
Read More:
- Vue Error: renren-fast-vue execute npm install Error [How to Solve]
- [Solved] Error:Plugin/Preset files are not allowed to export objects, only functions
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- Cnpm install vuecli error [How to Solve]
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- [Solved] Node.js v17 npm run dev Error: opensslErrorStack
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- [Solved] Node Create Express Project Error: Failed to lookup view “error“ in views directory
- Using ts-node to Execute .ts files Error [Solved]
- [Solved] NPM node ERROR in main..js from Terser ChildProcessWorker.initialize Excaption
- [Solved] node.js Upload Files Error: Multipart: boundary not found multer
- [Solved] Failed to load resource: net::ERR_FILE_NOT_FOUND
- How to Solve Vue project Startup Error (Node Upgrade issue)
- Solution to some map files in JS folder after Vue packaging (remove the map. JS file)
- [Solved] Error in load assembly ‘System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1’
- npm run dev Error: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error‘ ]
- [Solved] To install it, you can run: npm install –save core-js/modules/es.error.cause.js
- [Solved] Npm install Error: verbose stack Error: unable to resolve dependency tree
- [Solved] npm run start Run Error: Missing script: “start“