You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm notice created a lockfile as package-lock.json. You should commit this file.
added 95 packages from 126 contributors in 8.302s
I:wechaty-getting-started ce$ npm start
npm: ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
npm: { Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm: npm
npm: WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at Pipe._handle.close (net.js:610:12)
killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-puppeteer@^0.14.1 ' }
10:36:53 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at Pipe._handle.close (net.js:610:12)
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ce/.npm/_logs/2019-02-21T02_48_40_598Z-debug.log
I:wechaty-getting-started ce$ npm install [email protected]
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/uri-js/node_modules
npm ERR! path /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
I:wechaty-getting-started ce$ sudo npm install [email protected]
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ce/.npm/_logs/2019-02-21T02_49_40_445Z-debug.log
I:wechaty-getting-started ce$ nvm list
v6.11.2
v10.10.0
-> v10.15.0
v11.10.0
The text was updated successfully, but these errors were encountered:
到 npm start 的时候安装 puppeteer。报错。
I:wechaty-getting-started ce$ npm install
npm notice created a lockfile as package-lock.json. You should commit this file.
added 95 packages from 126 contributors in 8.302s
I:wechaty-getting-started ce$ npm start
10:32:45 INFO Wechaty start() v0.22.6 is starting...
10:32:45 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.14.1) please wait ...
npm:
npm: ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
npm: { Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm: npm
npm: WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm
npm: WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm:
npm: npm
npm: ERR! code ELIFECYCLE
npm: npm ERR! errno 1
npm: npm
npm: ERR! [email protected] install:
node install.js
npm ERR!
npm: Exit status 1
npm: npm ERR!
npm: npm ERR! Failed at the [email protected] install script.
npm: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-puppeteer@^0.14.1 ' }
10:36:53 ERR Wechaty start() exception: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
{ Error: Command failed: npm install wechaty-puppet-puppeteer@^0.14.1
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/wechaty/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm WARN [email protected] requires a peer of file-box@^0.8.22 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of wechaty-puppet@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
killed: false,
code: 1,
signal: null,
cmd: 'npm install wechaty-puppet-puppeteer@^0.14.1 ' }
I:wechaty-getting-started ce$ sudo npm install wechaty-puppet-puppeteer@^0.14.1
Password:
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ce/.npm/_logs/2019-02-21T02_48_40_598Z-debug.log
I:wechaty-getting-started ce$ npm install [email protected]
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm WARN checkPermissions Missing write access to /Users/ce/yaowu/wechaty-getting-started/node_modules/uri-js/node_modules
npm ERR! path /Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/ce/yaowu/wechaty-getting-started/node_modules/tough-cookie/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
I:wechaty-getting-started ce$ sudo npm install [email protected]
ERROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: EACCES: permission denied, mkdir '/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/lib/helper.js:108:27)
at Object. (/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path:
'/Users/ce/yaowu/wechaty-getting-started/node_modules/puppeteer/.local-chromium' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ce/.npm/_logs/2019-02-21T02_49_40_445Z-debug.log
I:wechaty-getting-started ce$ nvm list
v6.11.2
v10.10.0
-> v10.15.0
v11.10.0
The text was updated successfully, but these errors were encountered: