npm install 依赖包 报错 npm ERR! must provide string spec
文件: /.../.npm/_logs/2021-07-19T06_39_24_453Z-debug.log
0 verbose cli [
0 verbose cli '/Users/L/.nvm/versions/node/v15.11.0/bin/node',
0 verbose cli '/Users/L/.nvm/versions/node/v15.11.0/bin/npm',
0 verbose cli 'install',
0 verbose cli 'taro-ui'
0 verbose cli ]
1 info using npm@7.20.0
2 info using node@v15.11.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/L/Mlatin_code/mlatin_star_user/.npmrc Completed in 2ms
10 timing config:load:project Completed in 5ms
11 timing config:load:file:/Users/L/.npmrc Completed in 1ms
12 timing config:load:user Completed in 2ms
13 timing config:load:file:/Users/L/.nvm/versions/node/v15.11.0/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 14ms
20 timing npm:load:setTitle Completed in 14ms
21 timing npm:load:setupLog Completed in 2ms
22 timing npm:load:cleanupLog Completed in 1ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 32ms
26 timing config:load:flatten Completed in 2ms
27 timing arborist:ctor Completed in 1ms
28 timing idealTree Completed in 168ms
29 timing command:install Completed in 186ms
30 verbose stack TypeError: must provide string spec
30 verbose stack at new Edge (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/edge.js:48:13)
30 verbose stack at Node.[_loadDepType] (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:783:9)
30 verbose stack at Node.[Arborist.Node._loadDeps] (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:767:23)
30 verbose stack at new Node (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:232:20)
30 verbose stack at Arborist.[loadVirtualNode] (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:259:18)
30 verbose stack at Arborist.[resolveNodes] (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:194:43)
30 verbose stack at Arborist.[loadFromShrinkwrap] (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:94:46)
30 verbose stack at Arborist.loadVirtual (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:69:35)
30 verbose stack at async Arborist.buildIdealTree (/Users/L/.nvm/versions/node/v15.11.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:215:7)
30 verbose stack at async Promise.all (index 1)
31 verbose cwd /Users/L/Mlatin_code/mlatin_star_user
32 verbose Darwin 19.6.0
33 verbose argv "/Users/L/.nvm/versions/node/v15.11.0/bin/node" "/Users/L/.nvm/versions/node/v15.11.0/bin/npm" "install" "taro-ui"
34 verbose node v15.11.0
35 verbose npm v7.20.0
36 error must provide string spec
37 verbose exit 1
不知道什么原因
发现不是源的问题 处理了 npmrc 文件
请走过路过的大侠指点一二
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论