且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NPM 无法读取未定义的属性“0"

更新时间:2022-01-09 06:14:36

我做了一些测试:

nodejs@8.6.0 npm@5.5.1 - 我有问题,测试失败

I've made some tests:

nodejs@8.6.0 npm@5.5.1 - I have trouble and the test fails

nvm use 8.5.0

nodejs@8.5.0 npm@5.5.1 - 我有问题,测试失败

nodejs@8.5.0 npm@5.5.1 - I have trouble and the test fails

nvm use 8.4.0

nodejs@8.4.0 npm@5.5.1 - 我有问题,测试失败

nodejs@8.4.0 npm@5.5.1 - I have trouble and the test fails

npm install npm@^5 -g

nodejs@8.4.0 npm@5.4.2 - 我有问题,测试失败

nodejs@8.4.0 npm@5.4.2 - I have trouble and the test fails

nvm use 8.6.0
npm install npm@^4 -g

nodejs@8.6.0 npm@4.6.1 - 没问题,这解决了.

nodejs@8.6.0 npm@4.6.1 - no trouble, this fixes it.