我正在尝试按照以下说明安装keystonejs,但是安装yo时我会收到依赖关系错误消息:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for lodash@3.3.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
规格:节点V8.9.4OS:MacOS Highsierra V10.13.3
看来lodash@3.3.1当时有NPM登记册有一个问题,但这让我想知道为什么在yo中没有升级这一点 - 这又使我有些搞砸了。。
无论如何,任何人都可以将我指向正确的方向。
Mike
i 没有答案,但我只是以为我会与您分享:
我的node
是v7.10.1
,我的npm
是4.2.0
,我可以安装lodash@ 3.3.1 没有任何问题:
me@computer:~/Downloads/lodash-test$ npm install lodash@3.3.1
/home/me/Downloads/lodash-test
└── lodash@3.3.1
也可以安装yo
无任何问题,其lodash
依赖项具有 4.17.5
:
me@computer:~/Downloads/lodash-test$ npm install yo
...
...
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
Everything looks all right!
/home/me/Downloads/lodash-test
└─┬ yo@2.0.1
├─┬ async@2.6.0
│ └── lodash@4.17.5
...
...
├── lodash@4.17.5
├─┬ meow@3.7.0
│ ├─┬ camelcase-keys@2.1.0
...
...
几个月前,我开发了一个使用KeystoneJS的网页。当我查看其package.json
文件时,我看到lodash
版本是4.13.1
:
...
"keystone": "4.0.0-beta.5",
"lodash": "^4.13.1",
...