请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

jspm install报错

$ jspm install
err C:\Users\19680\AppData\Roaming\npm\node_modules\jspm\node_modules_@jspm_npm@1.0.0@@jspm\npm\npm.js:303
for await (const chunk of createPublishStream.call(this, pjson, tarStream, { readme, description: pjson.description, tag, access, registryUrlObj })) {
^^^^^

SyntaxError: Unexpected reserved word
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at RegistryManager.getEndpoint (C:\Users\19680\AppData\Roaming\npm\node_modules\jspm\lib\install\registry-manager.js?39)

是因为nodejs版本原因吗?我nodejs是v8.12.0,npm是6.4.1

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

2回答

TooooBug 2019-06-12 19:28:06

看起来确实是版本的问题,试试用node 10呢?

0 回复 有任何疑惑可以回复我~
boncsunny 2019-05-23 20:52:25

直接输入jspm,如果报错说明没有安装成功

npm install -g jspm --registry=http://registry.npm.taobao.org,全局安装如果报错,去掉-g在项目目录下安装

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信