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:
- Vue-cli2 sub environment packaging
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- How to open a page in a new window by Vue router
- Vue elementui: solution for error: avoided redundant navigation to current location: “/xxx”
- How to Block a frame with origin from accessing a cross origin frame
- JS uses onerror to automatically catch exceptions
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- [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.
- CSS text more than 2 lines hidden and show ellipsis
- Bugly automatically upload script and report zip error: nothing to do! In xcode10
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- Vue: How to Fix “not displaying the holder in IE9 and below”
- package.json Scripts configuration environment variable distinguishes development environment from production environment
- How to Set Time Zone in Golang
- TypeScript error TS2345: Argument of type ‘String ‘is not assignable to parameter of type ‘string’
- [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined error
- Vant Applet: The Usage of Vant-dialog in Before-close
- JS to determine whether the string contains a character