When I'm going to create new angular project using . This error occurred. Could you guys please, tell me how to solve this issue.
e$ ng new angular-the-basics
create angular-the-basics/e2e/app.e2e-spec.ts (300 bytes)
create angular-the-basics/e2e/app.po.ts (208 bytes)
create angular-the-basics/e2e/tsconfig.e2e.json (235 bytes)
create angular-the-basics/karma.conf.js (923 bytes)
create angular-the-basics/package.json (1302 bytes)
create angular-the-basics/protractor.conf.js (722 bytes)
create angular-the-basics/README.md (1032 bytes)
create angular-the-basics/src/app/app.component.css (0 bytes)
Installing packages for tooling via npm.
npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated [email protected]: stop using this version
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\httpntlm):
npm WARN network SKIPPING OPTIONAL DEPENDENCY: request to https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\escodegen):
npm WARN network SKIPPING OPTIONAL DEPENDENCY: request to https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\uglify-to-browserify):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'D:\Git\angular-project\angular-the-basics\node_modules\.staging\uglify-to-browserify-f9ddd93a'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\degenerator):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'D:\Git\angular-project\angular-the-basics\node_modules\.staging\degenerator-b0b187d9'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\optionator):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'D:\Git\angular-project\angular-the-basics\node_modules\.staging\optionator-d20f57c5'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\pac-resolver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'D:\Git\angular-project\angular-the-basics\node_modules\.staging\pac-resolver-ce15981e'
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lilan\AppData\Roaming\npm-cache\_logs\2018-05-21T07_33_59_772Z-debug.log
Package install failed, see above.
Package install failed, see above.
node -v
v9.4.0
npm -v
5.6.0
ng -v
Angular CLI: 1.6.6 OS: win32 x64
I don't know especially if it will fix your problem but you can try this, It worked for me:
npm
and npm-cache
in ...AppData/Roaming
npm cache clean --force
npm install -g @angular/cli
Good work =)
if you using mac then use
rm package-lock.json
and for window user use
del package-lock.json
After that just run
npm install
hope will help.good luck
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With