px3rem-loader安装失败

px3rem-loader安装失败

PS D:\my-project> cnpm install px2rem-loader

× Install fail! Error: UNKNOWN: unknown error, symlink 'D:\my-project\node_modules\_big.js@5.2.2@big.js' -> 'D:\my-project\node_modules\_loader-utils@1.2.3@loader-utils\node_modules\big.js'

Error: UNKNOWN: unknown error, symlink 'D:\my-project\node_modules\_big.js@5.2.2@big.js' -> 'D:\my-project\node_modules\_loader-utils@1.2.3@loader-utils\node_modules\big.js'

npminstall version: 3.21.1

npminstall args: C:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Administrator\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org px2rem-loader


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕星星 2019-06-05 14:53:49

你好,同学使用npm命令安装试试:

npm install -D px2rem-loader

安装过程可能较慢,请耐心等待一下。

祝学习愉快!

  • 提问者 hayha西蒙 #1
    PS D:\my-project> npm install -D px2rem-loader npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. npm WARN checkPermissions Missing write access to D:\my-project\node_modules\px2rem-loader npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm ERR! path D:\my-project\node_modules\px2rem-loader npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall access npm ERR! enoent ENOENT: no such file or directory, access 'D:\my-project\node_modules\px2rem-loader' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-06-05T06_55_48_372Z-debug.log PS D:\my-project>
    2019-06-05 14:56:50
  • 好帮手慕星星 回复 提问者 hayha西蒙 #2
    你好,信息还是报错的,建议将node_modules文件删除,然后再用npm install命令安装所有的依赖,装完之后再使用npm install -D px2rem-loader安装试试。
    2019-06-05 16:45:56
  • 提问者 hayha西蒙 #3
    PS D:\my-project> npm install > core-js@2.6.9 postinstall D:\my-project\node_modules\core-js > node scripts/postinstall || echo "ignore" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > uglifyjs-webpack-plugin@0.4.6 postinstall D:\my-project\node_modules\webpack\node_modules\uglifyjs-webpack-plugin > node lib/post_install.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 1101 packages from 644 contributors and audited 11513 packages in 38.253s found 12 vulnerabilities (7 moderate, 5 high) run `npm audit fix` to fix them, or `npm audit` for details PS D:\my-project> npm install -D px2rem-loader [..................] / rollbackFailedOptional: verb npm-session 37999e653613f148
    2019-06-11 12:21:44
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师