Error screenshot:
error screenshots are seen in the cli. Js file line 17 error,
According to the path to find the file:
open files found an error line 17, note down the original 17 rows instead as shown in figure:
//const NRMRC = path.join(process.env.HOME, '.nrmrc');(Note these codes)
const NRMRC = path.join(process.env[(process.platform == 'win32') ?'USERPROFILE' : 'HOME'], '.nrmrc');
After executing CMD, enter NRM ls problem solved
Read More:
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- [Solved] Package Install Error: npm ERR code ERR_SOCKET_TIMEOUT npm ERR
- TypeScript error TS2345: Argument of type ‘String ‘is not assignable to parameter of type ‘string’
- [Solved] Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
- [Solved] npm Install vuex Error: npm ERR! code ERESOLVE
- npm ERR code ELIFECYCLE [How to Solve]
- [Vue warn]: Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- [Solved] Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined error
- request.js?b775:101 Uncaught (in promise) Error: Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Long’;
- [Solved] npm install Error: error code ERR_SOCKET_TIMEOUT
- “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] Vue2 Cross-domain Error: AxiosError net::ERR_FAILED, Network Error, ERR_NETWORK
- Error: input is invalid type [How to Solve]
- [Solved] /sockjs-node/info?t= net::ERR_SSL_PROTOCOL_ERROR
- After Vue is packaged to the server, the static resource path reports an error
- NPM publish an angular library Error [How to Solve]
- Vue Error: error in mounted hook: TypeError: invalid src type
- How to Solve NPM installation -g @view/client Error