Solution:
1. Enter Windos PowerShell in the search box in the system
2. Click “Run as Administrator”
3. Enter “set-ExecutionPolicy RemoteSigned” and press Enter
4. According to the prompt, enter A and press Enter
5. Return to cnpm -v again to execute successfully.
Not only cnpm commands, including pnpm, yarn and other commands, if such an error is reported when executed, it can be solved by this method. The premise is that if you use the npm command to install these CLI command tools, they must be installed in the global environment to take effect.
Read More:
- [Solved] Error: Failure while executing; `tar –extract –no-same-owner –file /Users/wangchuangyan/Library/C
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] This usually happens because your environment has changed since running `npm install`
- [Solved] VScode powershell Run ts-node Error: Unable to load file xxxx…
- NPM install Error cb.apply is not a function
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- android remount of /system failed: Read-only file system [How to Solve]
- Cannot start container 39f96c64a9c6: [8] System error: exec format error
- How to Fix “Microsoft Visual C ++ 14.0 is required” Error
- Cli Write Error: This is related to npm not being able to find a file. [Solved]
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- [Solved] Executing npm install error: npm ERR! code EINTEGRITY
- NVM ERROR open \settings.txt: The system cannot find the file specified
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- Commit failed – exit code 1 received, with output: ‘>running pre-commit hook: npm run precommit (Fixed)
- NPM install error: Cannot find module ‘D:\zip\node_modules\npm\bin\npm-cli.js‘
- db2 purescale Install Error: ERROR: An error occurred while compiling IBM General Parallel File System (GPFS) Portability Layer (GPL) on host “cf1”. Return code “3”.
- [Solved] This is probably not a problem with npm. There is likely additional logging output above.
- npm install npm ERR code ERESOLVE [How to Solve]