首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用npm安装history.js

无法使用npm安装history.js
EN

Stack Overflow用户
提问于 2016-01-08 13:01:49
回答 1查看 711关注 0票数 2

)我无法在Ubuntu15.10上使用npm安装history.js

节点v5.0.0

npm v3.5.3

日志:

代码语言:javascript
复制
 sudo npm i history

 > history@1.17.0 postinstall /media/programs/WEB/Projects/React/Redux/node_modules/history
 > node ./npm-scripts/postinstall.js

 module.js:339
     throw err;
     ^

 Error: Cannot find module '/media/programs/WEB/Projects/React/Redux/node_modules/history/npm-scripts/postinstall.js'
     at Function.Module._resolveFilename (module.js:337:15)
     at Function.Module._load (module.js:287:25)
     at Function.Module.runMain (module.js:457:10)
     at startup (node.js:136:18)
     at node.js:972:3
 npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
 npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
 npm ERR! Linux 4.2.0-22-generic
 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "history"
 npm ERR! code ELIFECYCLE
 npm ERR! history@1.17.0 postinstall: `node ./npm-scripts/postinstall.js`
 npm ERR! Exit status 1
 npm ERR! Failed at the history@1.17.0 postinstall script 'node ./npm-scripts/postinstall.js'.
 npm ERR! Make sure you have the latest version of node.js and npm installed.
 npm ERR! If you do, this is most likely a problem with the history package,
 npm ERR! not with npm itself.
 npm ERR! Tell the author that this fails on your system:
 npm ERR!     node ./npm-scripts/postinstall.js

你有什么想法吗?

对不起,我的英语。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-08 13:30:49

这是一些软件包在某些操作系统上不支持的老问题。同样的问题发生在国家预防机制3.3.12之前的fsevents@1.0.6,但在3.3.12中得到了修正。

现在,在NPM3.5.3中,它再次创建问题,因此您可以等待npm的下一个构建。

你可以读到这个这里

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34677767

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档