[ERROR] An error occurred while running NPM I (exit code 1): code400

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.