NPM error on MAC

NPM error on MAC, always error.

Last login: Tue Sep 10 11:32:41 on ttys001

Mac-mini:jitsi-meet-3597 dongjunlong$ sudo npm install

Password:

node-sass@4.10.0 install /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/install.js

Unable to save binary /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor/darwin-x64-64 : { Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’

at Object.mkdirSync (fs.js:757:3)

at sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:71:13)

at Function.sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:77:24)

at checkAndDownloadBinary (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:114:11)

at Object. (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:157:1)

at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)

at Module.load (internal/modules/cjs/loader.js:653:32)

at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

at Function.Module._load (internal/modules/cjs/loader.js:585:3)

errno: -13,

syscall: ‘mkdir’,

code: ‘EACCES’,

path:

‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’ }

node-sass@4.10.0 postinstall /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/build.js

Building: /usr/local/bin/node /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

gyp info it worked if it ends with ok

gyp verb cli [ ‘/usr/local/bin/node’,

gyp verb cli ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js’,

gyp verb cli ‘rebuild’,

gyp verb cli ‘–verbose’,

gyp verb cli ‘–libsass_ext=’,

gyp verb cli ‘–libsass_cflags=’,

gyp verb cli ‘–libsass_ldflags=’,

gyp verb cli ‘–libsass_library=’ ]

gyp info using node-gyp@3.8.0

gyp info using node@10.16.3 | darwin | x64

gyp verb command rebuild

gyp verb command clean

gyp verb clean removing “build” directory

gyp verb command configure

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb check python checking for Python executable “python2” in the PATH

gyp verb which succeeded python2 /usr/local/bin/python2

gyp verb check python version `/usr/local/bin/python2 -c "import sys; print "2.7.15

gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j

gyp verb get node dir no --target version specified, falling back to host node version: 10.16.3

gyp verb command install [ ‘10.16.3’ ]

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb install input version string “10.16.3”

gyp verb install installing version: 10.16.3

gyp verb install --ensure was passed, so won’t reinstall if already installed

gyp verb install version is already installed, need to check “installVersion”

gyp verb got “installVersion” 9

gyp verb needs “installVersion” 9

gyp verb install version is good

gyp verb get node dir target node version installed: 10.16.3

gyp verb build dir attempting to create “build” dir: /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build’

gyp ERR! System Darwin 18.7.0

gyp ERR! command “/usr/local/bin/node” “/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”

gyp ERR! cwd /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

gyp ERR! node -v v10.16.3

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

Build failed with error code: 1

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react-dom@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/layer@2.9.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/theme@2.4.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN react-native-webview@5.8.1 requires a peer of react-native@>=0.57 <0.60 but none is installed. You must install peer dependencies yourself.

npm WARN rollup-plugin-visualizer@1.1.1 requires a peer of rollup@>=0.60.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! node-sass@4.10.0 postinstall: node scripts/build.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the node-sass@4.10.0 postinstall 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/dongjunlong/.npm/_logs/2019-09-10T06_04_07_477Z-debug.log

Mac-mini:jitsi-meet-3597 dongjunlong$ sudo npm install

Password:

npm WARN tarball tarball data for lodash@4.17.11 (sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==) seems to be corrupted. Trying one more time.

node-sass@4.10.0 install /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/install.js

Unable to save binary /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor/darwin-x64-64 : { Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’

at Object.mkdirSync (fs.js:757:3)

at sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:71:13)

at Function.sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:77:24)

at checkAndDownloadBinary (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:114:11)

at Object. (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:157:1)

at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)

at Module.load (internal/modules/cjs/loader.js:653:32)

at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

at Function.Module._load (internal/modules/cjs/loader.js:585:3)

errno: -13,

syscall: ‘mkdir’,

code: ‘EACCES’,

path:

‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’ }

node-sass@4.10.0 postinstall /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/build.js

Building: /usr/local/bin/node /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

gyp info it worked if it ends with ok

gyp verb cli [ ‘/usr/local/bin/node’,

gyp verb cli ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js’,

gyp verb cli ‘rebuild’,

gyp verb cli ‘–verbose’,

gyp verb cli ‘–libsass_ext=’,

gyp verb cli ‘–libsass_cflags=’,

gyp verb cli ‘–libsass_ldflags=’,

gyp verb cli ‘–libsass_library=’ ]

gyp info using node-gyp@3.8.0

gyp info using node@10.16.3 | darwin | x64

gyp verb command rebuild

gyp verb command clean

gyp verb clean removing “build” directory

gyp verb command configure

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb check python checking for Python executable “python2” in the PATH

gyp verb which succeeded python2 /usr/local/bin/python2

gyp verb check python version `/usr/local/bin/python2 -c "import sys; print "2.7.15

gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j

gyp verb get node dir no --target version specified, falling back to host node version: 10.16.3

gyp verb command install [ ‘10.16.3’ ]

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb install input version string “10.16.3”

gyp verb install installing version: 10.16.3

gyp verb install --ensure was passed, so won’t reinstall if already installed

gyp verb install version is already installed, need to check “installVersion”

gyp verb got “installVersion” 9

gyp verb needs “installVersion” 9

gyp verb install version is good

gyp verb get node dir target node version installed: 10.16.3

gyp verb build dir attempting to create “build” dir: /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build’

gyp ERR! System Darwin 18.7.0

gyp ERR! command “/usr/local/bin/node” “/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”

gyp ERR! cwd /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

gyp ERR! node -v v10.16.3

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

Build failed with error code: 1

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react-dom@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/layer@2.9.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/theme@2.4.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN react-native-webview@5.8.1 requires a peer of react-native@>=0.57 <0.60 but none is installed. You must install peer dependencies yourself.

npm WARN rollup-plugin-visualizer@1.1.1 requires a peer of rollup@>=0.60.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! node-sass@4.10.0 postinstall: node scripts/build.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the node-sass@4.10.0 postinstall 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/dongjunlong/.npm/_logs/2019-09-10T06_57_01_226Z-debug.log

Mac-mini:jitsi-meet-3597 dongjunlong$ node -v

v10.16.3

Mac-mini:jitsi-meet-3597 dongjunlong$ npm -v

6.9.0

Mac-mini:jitsi-meet-3597 dongjunlong$ sudo npm install

Password:

node-sass@4.10.0 install /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/install.js

Unable to save binary /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor/darwin-x64-64 : { Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’

at Object.mkdirSync (fs.js:757:3)

at sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:71:13)

at Function.sync (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/mkdirp/index.js:77:24)

at checkAndDownloadBinary (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:114:11)

at Object. (/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/scripts/install.js:157:1)

at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)

at Module.load (internal/modules/cjs/loader.js:653:32)

at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

at Function.Module._load (internal/modules/cjs/loader.js:585:3)

errno: -13,

syscall: ‘mkdir’,

code: ‘EACCES’,

path:

‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/vendor’ }

node-sass@4.10.0 postinstall /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

node scripts/build.js

Building: /usr/local/bin/node /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

gyp info it worked if it ends with ok

gyp verb cli [ ‘/usr/local/bin/node’,

gyp verb cli ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js’,

gyp verb cli ‘rebuild’,

gyp verb cli ‘–verbose’,

gyp verb cli ‘–libsass_ext=’,

gyp verb cli ‘–libsass_cflags=’,

gyp verb cli ‘–libsass_ldflags=’,

gyp verb cli ‘–libsass_library=’ ]

gyp info using node-gyp@3.8.0

gyp info using node@10.16.3 | darwin | x64

gyp verb command rebuild

gyp verb command clean

gyp verb clean removing “build” directory

gyp verb command configure

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb check python checking for Python executable “python2” in the PATH

gyp verb which succeeded python2 /usr/local/bin/python2

gyp verb check python version `/usr/local/bin/python2 -c "import sys; print "2.7.15

gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j

gyp verb get node dir no --target version specified, falling back to host node version: 10.16.3

gyp verb command install [ ‘10.16.3’ ]

gyp verb download using dist-url https://npm.taobao.org/dist

gyp verb install input version string “10.16.3”

gyp verb install installing version: 10.16.3

gyp verb install --ensure was passed, so won’t reinstall if already installed

gyp verb install version is already installed, need to check “installVersion”

gyp verb got “installVersion” 9

gyp verb needs “installVersion” 9

gyp verb install version is good

gyp verb get node dir target node version installed: 10.16.3

gyp verb build dir attempting to create “build” dir: /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass/build’

gyp ERR! System Darwin 18.7.0

gyp ERR! command “/usr/local/bin/node” “/Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”

gyp ERR! cwd /Users/dongjunlong/Desktop/jitsi-meet-3597/node_modules/node-sass

gyp ERR! node -v v10.16.3

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

Build failed with error code: 1

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/inline-dialog@5.3.0 requires a peer of react-dom@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/layer@2.9.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN @atlaskit/theme@2.4.1 requires a peer of react@15.6.0 - 16.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN react-native-webview@5.8.1 requires a peer of react-native@>=0.57 <0.60 but none is installed. You must install peer dependencies yourself.

npm WARN rollup-plugin-visualizer@1.1.1 requires a peer of rollup@>=0.60.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! node-sass@4.10.0 postinstall: node scripts/build.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the node-sass@4.10.0 postinstall 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/dongjunlong/.npm/_logs/2019-09-10T08_25_15_721Z-debug.log

Mac-mini:jitsi-meet-3597 dongjunlong$

how to do

Do NOT use sudo.

1 Like

thank you!

Mac-mini:ios dongjunlong$ pod install

[!] Invalid Podfile file: No such file or directory - ./node_modules/.bin/react-native.

from /Users/dongjunlong/Desktop/jitsi-meet-3597/ios/Podfile:66

-------------------------------------------

use_native_modules!

end

-------------------------------------------

Mac-mini:ios dongjunlong$ npm install -g ios-deploy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/ios-deploy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules/ios-deploy
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/ios-deploy’
npm ERR! { [Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/ios-deploy’]
npm ERR! stack:
npm ERR! ‘Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/ios-deploy’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/usr/local/lib/node_modules/ios-deploy’ }
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).

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dongjunlong/.npm/_logs/2019-09-10T08_44_15_337Z-debug.log

how to do?

You have broken your Node installation because some folders are now owned by root. Please reinstall Node and follow the instructions closely, again.