Tag Archives: Error in work
Vue Error: renren-fast-vue execute npm install Error [How to Solve]
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