简体   繁体   中英

npm install on chromebook

I just got myself a Chromebook but having some issues installing packages with npm install. I am in developer mode and also tried with root but still getting permission issues. Anyone else having these issues? I have also tried taking ownership of the folders by running sudo chown -R $(whoami) /mnt/chromeos/ but no luck Here is the permission issue I get when I try to run npm install:

npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /mnt/chromeos/MyFolder/node_modules/.bin/parser
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../@babel/parser/bin/babel-parser.js' -> '/mnt/chromeos/GoogleDrive/MyDrive/MyFolder/node_modules/.bin/parser'```

I had this issue. I figured it out. I had linked my android folder to the linux folder (when create a folder in a chromebook you can right click and "share with linux").

Well turns out these things don't play nice with symlinks.

Solution is create a new folder in you "linux files" directly (that isn't shared between the VM and ChromeOS) and run your command again. It should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM