bug Error: Cannot find module ‘vue-loader-v16/package.json‘的解决办法

本文介绍了如何修复在使用npm时遇到的'Error: Cannot find module 'vue-loader-v16/package.json''错误。通过执行特定的更新命令,可以解决这个问题。
摘要由CSDN通过智能技术生成

更新,命令如下,在

https://stackoverflow.com/questions/63504594/error-cannot-find-module-vue-loader-v16-package-json

查到

cnpm i --save-dev vue-loader-v16
ivyone@ivyonedeMacBook-Pro daily-cost % cnpm install[12/17] Installing source-map@^0.6.1[vue-loader-v16@npm:vue-loader@^16.1.0] optional install error: Error: Unsupported URL Type: npm:vue-loader@^16.1.0
    at parseUrl (/usr/local/lib/node_modules/cnpm/node_modules/npm-package-arg/npa.js:186:13)
    at npa (/usr/local/lib/node_modules/cnpm/node_modules/npm-package-arg/npa.js:79:12)
    at _install (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:62:11)
    at _install.next (<anonymous>)
    at onFulfilled (/usr/local/lib/node_modules/cnpm/node_modules/co/index.js:65:19)
    at /usr/local/lib/node_modules/cnpm/node_modules/co/index.js:54:5
    at new Promise (<anonymous>)
    at co (/usr/local/lib/node_modules/cnpm/node_modules/co/index.js:50:10)
    at toPromise (/usr/local/lib/node_modules/cnpm/node_modules/co/index.js:118:63)
    at next (/usr/local/lib/node_modules/cnpm/node_modules/co/index.js:99:29)
✔ Installed 17 packages
✔ Linked 952 latest versions
[1/3] scripts.install @vue/cli-plugin-babel@4.5.11 › webpack@4.46.0 › watchpack@1.7.5 › watchpack-chokidar2@2.0.1 › chokidar@2.1.8 › fsevents@^1.2.7 run "node install.js", root: "/Users/ivyone/daily-cost/node_modules/_fsevents@1.2.13@fsevents"
gyp WARN EACCES user "ivyone" does not have permission to access the dev dir "/Users/ivyone/.node-gyp/14.15.5"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/folders/l9/kpwnx6f551d69kvflqcjbnsr0000gn/T/.node-gyp"
gyp http GET https://npm.taobao.org/mirrors/node/v14.15.5/node-v14.15.5-headers.tar.gz
gyp http 200 https://npm.taobao.org/mirrors/node/v14.15.5/node-v14.15.5-headers.tar.gz
gyp http GET https://npm.taobao.org/mirrors/node/v14.15.5/SHASUMS256.txt
gyp http 200 https://npm.taobao.org/mirrors/node/v14.15.5/SHASUMS256.txt
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值