The national Day came, NPM command can not be used: I built a new ionic project
Ionic Start Ionc Tabs
This error has occurred: the following:
PS g:\lianxi\myionic02> Ionic start myionic03 tabs
√creating directory. \myionic03-done!
√downloading and Extracting tabs starter-done!
? Would to integrate your The new app with Cordova to target native IOS and Android? No
√personalizing Ionic.config.json and package.json-done!
Installing dependencies may take several minutes.
* IONIC Devapp *
Development with the Ionic Devapp, our fast, On-device testing mobile app
-Test on IOS and Android without Native SDKs
-Livereload for instant style and JS updates
?--> Install Devapp:https://bit.ly/ionic-dev-app <--
> NPM I
Xrunning command-failed!
[ERROR] An error occurred while running NPM I (exit code 1):
NPM err! Code E400
NPM err! "Request: @angular/[email protected]
NPM err! A Complete log of the This run can is found in:
NPM err! C:\Program Files\nodejs\node_cache\_logs\2018-10-10t00_42_27_177z-debug.log
The picture should look clearer:
Baidu, Google search a lot, did not find the answer, I always thought it was node or angular problem,
Then one of the great gods told me that it might be ionic ', and the problem was solved:
Found it in the C drive. NPMRC This file
Delete the first and 4th lines,
Perform ionic start Ionc tabs here
Problem solved perfectly
[ERROR] An error occurred while running NPM I (exit code 1): code400