Resolution NPM: unable to load file D:\code\Renren fast Vue\node_ modules.bin\npm.ps1
There are four steps
It is forbidden to run scripts on this system, that is, you do not have permission. First use the following command:
get-ExecutionPolicy
If output:
Restricted
The above indicates restricted and the status is prohibited. Then give a permission:
Set-ExecutionPolicy -Scope CurrentUser
Re enter:
RemoteSigned
The above is OK. If you want to verify it, enter get executionpolicy and output remotesigned
==================================================================
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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\Administrator\AppData\Roaming\npm-cache\_logs\2021-12-03T02_48_23_436Z-debug.log
PS D:\work\guigu\guli-vue\renren-fast-vue> get-ExecutionPolicy
Restricted
PS D:\work\guigu\guli-vue\renren-fast-vue> Set-ExecutionPolicy -Scope CurrentUser
cmdlet Set-ExecutionPolicy in command pipeline location 1
Please provide values for the following parameters:
ExecutionPolicy: RemoteSigned
PS D:\work\guigu\guli-vue\renren-fast-vue> get-ExecutionPolicy
RemoteSigned
PS D:\work\guigu\guli-vue\renren-fast-vue> npm install
Read More:
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- VUE: How to Solve NPM Always Install Error
- [Solved] npm Install vuex Error: npm ERR! code ERESOLVE
- [Solved] Vue create error: ERROR: command failed: npm install –loglevel error
- [Solved] Vue create Create Project Error: command failed: npm install –loglevel error
- [Solved] To install it, you can run: npm install –save core-js/modules/es.error.cause.js
- [Weex]Error in creating project NPM: unable to load file D:\program files\nodejs\node_ global\ weex.ps1 Because scripts are not allowed to run on this system.
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Package Install Error: npm ERR code ERR_SOCKET_TIMEOUT npm ERR
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- npm install error code EINTEGRITY sha1 [How to Solve]
- [Solved] Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
- Vue Install less Error: While resolving: [email protected]
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] Npm install Error: verbose stack Error: unable to resolve dependency tree
- How to Solve Vue add element Install Error
- [Solved] npm install Error: error code ERR_SOCKET_TIMEOUT
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue3 Install vuetify Error: Error: You cannot call “get” on a collection with no paths.
- [Solved] Vue Install loader Error: Syntax Error: Error: Cannot find module ‘less‘