Vue-cli: 404 Not Found: @akryum/winattr@^3.0.0

Created on 15 Aug 2018  ·  12Comments  ·  Source: vuejs/vue-cli

Version

3.0.0

Node and OS info

node 8.11.3 / yarn 1.9.4 / ubuntu 16.04 / npm 5.6.0

Steps to reproduce

Trying to install vue-cli 3 running:

npm i @vue/cli -g

can't find the winattr package:

npm ERR! code E404
npm ERR! 404 Not Found: @akryum/winattr@^3.0.0

trying with yarn:

yarn global add @vue/cli 
yarn global v1.9.4
[1/4] Resolving packages...
error Couldn't find package "@akryum/winattr@^3.0.0" required by "@vue/cli-ui@^3.0.0" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Error: Couldn't find package "@apollographql/graphql-playground-html@^1.6.0" required by "apollo-server-express@^2.0.0-rc.5" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/share/yarn/lib/cli.js:243:66)
    at new MessageError (/usr/share/yarn/lib/cli.js:272:123)
    at PackageRequest.<anonymous> (/usr/share/yarn/lib/cli.js:38988:17)
    at Generator.throw (<anonymous>)
    at step (/usr/share/yarn/lib/cli.js:92:30)
    at /usr/share/yarn/lib/cli.js:105:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)



md5-4774d199e44b10b988433f08e5a5b412



npm i @akryum/winattr

same 404 error

What is expected?

Install vue-cli 3 successfully

What is actually happening?

Error 404 Not Found: "@akryum/winattr@^3.0.0" required by "@vue/cli-ui@^3.0.0"


i tried to uninstall and reinstall node, npm and vue-cli itself

needs team repro

Most helpful comment

I encountered the same issue.
This worked for me

npm install --registry=https://registry.npmjs.com/ -g @vue/cli

All 12 comments

Have you ever modified your ~/.npmrc file?

Never. Should I?

Em 15 de ago de 2018 05:42, "Haoqun Jiang" notifications@github.com
escreveu:

Have you ever modified your ~/.npmrc file?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue-cli/issues/2220#issuecomment-413133068, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASev5J2pVCFsz7Vi2jkFnqIQfJNwEl8Tks5uQ98AgaJpZM4V9cjX
.

I think it's an issue with your environment since the package exists: https://www.npmjs.com/package/@akryum/winattr

Likely outdated local resolution cache, or npm server issue.

I have the same problem.

Try reset npm cache using

npm cache clean --force

$ npm install -g @vue/cli

npm ERR! code E404
npm ERR! 404 Not Found: @akryum/winattr@^3.0.0

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jiangxin/nodejs/npm_cache/_logs/2018-08-17T14_34_14_944Z-debug.log

$ yarn global add @vue/cli

yarn global v1.9.4
warning package.json: No license field
[1/4] 🔍  Resolving packages...
error Couldn't find package "@akryum/winattr@^3.0.0" required by "@vue/cli-ui@^3.0.1" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Error: Couldn't find package "@apollographql/graphql-playground-html@^1.6.0" required by "apollo-server-express@^2.0.0-rc.5" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/jiangxin/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/jiangxin/.yarn/lib/cli.js:272:123)
    at PackageRequest.<anonymous> (/Users/jiangxin/.yarn/lib/cli.js:38988:17)
    at Generator.throw (<anonymous>)
    at step (/Users/jiangxin/.yarn/lib/cli.js:92:30)
    at /Users/jiangxin/.yarn/lib/cli.js:105:13
    at process._tickCallback (internal/process/next_tick.js:68:7)

I encountered the same issue.
This worked for me

npm install --registry=https://registry.npmjs.com/ -g @vue/cli

npm install --registry=https://registry.npmjs.com/ -g @vue/cli

This worked for me. Thanks

I was able to use this command

npm install --registry=https://registry.npmjs.com/ -g @vue/cli

to get rid of the original issue that started this thread.

Then when I run the command.

vue create client

I get this error.

yarn install v1.13.0
info No lockfile found.
[1/4] 🔍 Resolving packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this comman
d.
error Couldn't find package "@vue/babel-preset-jsx@^1.0.0-beta.2" required by "@vue/ba
bel-preset-app@^3.4.0" on the "npm" registry.

Error: Couldn't find package "@xtuc/[email protected]" required by "@webassemblyjs/[email protected]" on the "npm" registry.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:727:66)
at new MessageError (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:756:123)
at PackageRequest. (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:35729:17)
at Generator.throw ()
at step (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:304:30)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:317:13
at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@xtuc/[email protected]" required by "@webassemblyjs/[email protected]" on the "npm" registry.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:727:66)
at new MessageError (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:756:123)
at PackageRequest. (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:35729:17)
at Generator.throw ()
at step (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:304:30)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:317:13
at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@xtuc/[email protected]" required by "@webassemblyjs/[email protected]" on the "npm" registry.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:727:66)
at new MessageError (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:756:123)
at PackageRequest. (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:35729:17)
at Generator.throw ()
at step (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:304:30)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:317:13
at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@xtuc/ieee754@^1.2.0" required by "@webassemblyjs/[email protected]" on the "npm" registry.
at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:727:66)
at new MessageError (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:756:123)
at PackageRequest. (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:35729:17)
at Generator.throw ()
at step (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:304:30)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:317:13
at process._tickCallback (internal/process/next_tick.js:68:7)
ERROR command failed: yarn
~/TestVue$ yarn -version
1.13.0
~/TestVue$

Anyone know how to fix this? I have tried un installing, deleting and then reinstalling. I have updated yarn and I have looked up everything I can on this and cant find the solution.

I got same issue, the yarn add command will not works well when installing the @vue/cli

What about deleting ~/.npmrc and then try again? In my experience, installation issues of scoped packages are likely to be caused by misconfigured npmrc.

Was this page helpful?
0 / 5 - 0 ratings